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:
parent
01c82fdfce
commit
6b67d9e35f
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue