Update mm-scripts.sh

This commit is contained in:
2022-05-12 20:40:35 -05:00
parent 5b380c9c65
commit db44c6c0eb

View File

@@ -37,6 +37,13 @@ MMSTART(){
#OUT=`ip a show $VPN_INTERFACE up` >/dev/null 2>&1
if [ ${#OUT} -ne 0 ]; then
checked=""
elif [ "${1}" = "check" ] && [ ${cc} -eq 0 ]; then
touch /opt/mm.vpn.fail
MMSTOP
sleep 1m
"${VPN_START[@]}"
rm -f /opt/mm.stop
exit 1
fi
if [ "${checked}" == "false" ] && [ ${cc} -eq 10 ]; then
if [ -f /opt/mm.vpn.fail ]; then