1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix OpenVPN control status

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-01-04 12:55:57 +01:00
parent ad18d0e8b3
commit 06b2e42c01

View file

@ -591,7 +591,7 @@ if [ "$(pgrep glorytun)" = "" ] && [ "$(uci -q get glorytun.vpn.enabled)" = "1"
/etc/init.d/glorytun-udp restart
sleep 5
fi
if [ "$(pgrep openvpn)" = "" ] && [ "$(uci -q get openvpn.omr.enabled)" != "0" ] && [ -f /etc/init.d/openvpn ]; then
if [ "$(pgrep openvpn)" = "" ] && [ "$(uci -q get openvpn.omr.enabled)" = "1" ] && [ -f /etc/init.d/openvpn ]; then
_log "Can't find OpenVPN, restart it..."
/etc/init.d/openvpn restart
sleep 5