Update mm-scripts.sh
This commit is contained in:
@@ -115,8 +115,8 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
|||||||
rm -f ${MMFOLDER}/mm.vpn.fail
|
rm -f ${MMFOLDER}/mm.vpn.fail
|
||||||
MMSTOP
|
MMSTOP
|
||||||
sleep 5m
|
sleep 5m
|
||||||
"${VPN_START[@]}" >/dev/null 2>&1 &
|
"${VPN_START[@]}" >/dev/null 2>&1
|
||||||
sleep 30s
|
sleep 10s
|
||||||
rm -f ${MMFOLDER}/mm.stop*
|
rm -f ${MMFOLDER}/mm.stop*
|
||||||
[ $VERBOSE = true ] && DEBUGLOGSTOP
|
[ $VERBOSE = true ] && DEBUGLOGSTOP
|
||||||
exit 1
|
exit 1
|
||||||
@@ -133,8 +133,8 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
|||||||
touch ${MMFOLDER}/mm.vpn.fail
|
touch ${MMFOLDER}/mm.vpn.fail
|
||||||
MMSTOP
|
MMSTOP
|
||||||
sleep 30s
|
sleep 30s
|
||||||
"${VPN_START[@]}" >/dev/null 2>&1 &
|
"${VPN_START[@]}" >/dev/null 2>&1
|
||||||
sleep 30s
|
sleep 10s
|
||||||
rm -f ${MMFOLDER}/mm.stop*
|
rm -f ${MMFOLDER}/mm.stop*
|
||||||
[ $VERBOSE = true ] && DEBUGLOGSTOP
|
[ $VERBOSE = true ] && DEBUGLOGSTOP
|
||||||
exit 1
|
exit 1
|
||||||
@@ -177,9 +177,9 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
|||||||
SENDNOTICE "Network Failure" "Default route failure, will try and restart the VPN" 1
|
SENDNOTICE "Network Failure" "Default route failure, will try and restart the VPN" 1
|
||||||
touch ${MMFOLDER}/mm.vpn.fail
|
touch ${MMFOLDER}/mm.vpn.fail
|
||||||
MMSTOP
|
MMSTOP
|
||||||
sleep 2m
|
sleep 30s
|
||||||
"${VPN_START[@]}" >/dev/null 2>&1 &
|
"${VPN_START[@]}" >/dev/null 2>&1
|
||||||
sleep 1m
|
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