mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Restart mlvpn if it's used and VPN detected as down
This commit is contained in:
parent
a1577392fe
commit
fb203484d0
1 changed files with 3 additions and 0 deletions
|
@ -367,6 +367,9 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ] || [ "$interface_up" != "true" ]; then
|
||||||
if [ "$(uci -q get dsvpn.vpn.enable)" = "1" ]; then
|
if [ "$(uci -q get dsvpn.vpn.enable)" = "1" ]; then
|
||||||
/etc/init.d/dsvpn restart
|
/etc/init.d/dsvpn restart
|
||||||
fi
|
fi
|
||||||
|
if [ "$(uci -q get mlvpn.general.enable)" = "1" ]; then
|
||||||
|
/etc/init.d/mlvpn restart
|
||||||
|
fi
|
||||||
config_load openmptcprouter
|
config_load openmptcprouter
|
||||||
config_foreach disable_pihole server
|
config_foreach disable_pihole server
|
||||||
#if [ "$(uci -q get openmptcprouter.settings.master)" != "balancing" ] || [ "$(uci -q get openmptcprouter.settings.vpn)" = "mlvpn" ]; then
|
#if [ "$(uci -q get openmptcprouter.settings.master)" != "balancing" ] || [ "$(uci -q get openmptcprouter.settings.vpn)" = "mlvpn" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue