Update mm-scripts.sh
This commit is contained in:
@@ -208,10 +208,10 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
|||||||
[ $VERBOSE = true ] && echo "$(date) - Default Routes: zerogw(${zerogw}) defaultgw(${defaultgw})" >> $logfile
|
[ $VERBOSE = true ] && echo "$(date) - Default Routes: zerogw(${zerogw}) defaultgw(${defaultgw})" >> $logfile
|
||||||
SENDNOTICE "Network Failure" "Cannot get an WAN address, will try and restart the VPN" 1
|
SENDNOTICE "Network Failure" "Cannot get an WAN address, will try and restart the VPN" 1
|
||||||
touch ${MMFOLDER}/mm.vpn.fail
|
touch ${MMFOLDER}/mm.vpn.fail
|
||||||
MMSTOP
|
MMSTOP >/dev/null 2>&1
|
||||||
sleep 30s
|
sleep 30s
|
||||||
"${VPN_START[@]}" >/dev/null 2>&1
|
# "${VPN_START[@]}" >/dev/null 2>&1
|
||||||
sleep 10s
|
# sleep 10s
|
||||||
rm -f ${MMFOLDER}/mm.stop*
|
rm -f ${MMFOLDER}/mm.stop*
|
||||||
[ $VERBOSE = true ] && DEBUGLOGSTOP
|
[ $VERBOSE = true ] && DEBUGLOGSTOP
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user