1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Update up_wan

This commit is contained in:
A Holt 2018-08-15 14:15:19 -04:00 committed by GitHub
parent 01c82fdfce
commit 6b67d9e35f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,8 +2,8 @@
# if the wan has recently come up, see if we need to start openvpn # if the wan has recently come up, see if we need to start openvpn
systemctl is-enabled openvpn systemctl is-enabled openvpn
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
pgrep openvpn pgrep openvpn
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
systemctl start openvpn@xscenet systemctl start openvpn@xscenet
fi fi
fi fi