mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add log info for VPN restart
This commit is contained in:
parent
cf11d7ccbc
commit
ccb05bb3b8
1 changed files with 3 additions and 0 deletions
|
@ -380,12 +380,15 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ] || [ "$interface_up" != "true" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$(uci -q get dsvpn.vpn.enable)" = "1" ]; then
|
if [ "$(uci -q get dsvpn.vpn.enable)" = "1" ]; then
|
||||||
|
_log "DSVPN down, restart it"
|
||||||
/etc/init.d/dsvpn restart
|
/etc/init.d/dsvpn restart
|
||||||
fi
|
fi
|
||||||
if [ "$(uci -q get mlvpn.general.enable)" = "1" ]; then
|
if [ "$(uci -q get mlvpn.general.enable)" = "1" ]; then
|
||||||
|
_log "MLVPN down, restart it"
|
||||||
/etc/init.d/mlvpn restart
|
/etc/init.d/mlvpn restart
|
||||||
fi
|
fi
|
||||||
if [ "$(uci -q get glorytun.vpn.enable)" = "1" ]; then
|
if [ "$(uci -q get glorytun.vpn.enable)" = "1" ]; then
|
||||||
|
_log "Glorytun VPN down, restart it"
|
||||||
/etc/init.d/glorytun restart
|
/etc/init.d/glorytun restart
|
||||||
/etc/init.d/glorytun-udp restart
|
/etc/init.d/glorytun-udp restart
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue