mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +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
|
||||
systemctl is-enabled openvpn
|
||||
if [ $? -eq 0 ]; then
|
||||
pgrep openvpn
|
||||
if [ $? -ne 0 ]; then
|
||||
systemctl start openvpn@xscenet
|
||||
fi
|
||||
pgrep openvpn
|
||||
if [ $? -ne 0 ]; then
|
||||
systemctl start openvpn@xscenet
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue