diff --git a/mm-scripts.sh b/mm-scripts.sh index 3623bfc..b3d5a54 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -406,7 +406,7 @@ MMSTATUS(){ echo -e "${idsCL[Green]}$defaultgw${idsCL[Default]}" else echo -e "${idsCL[Red]}Not correct${idsCL[Default]}" - if [ ! -f ${MMFOLDER}/mm.stop ]; then + if [ ! -f ${MMFOLDER}/mm.stop ] && [ ! -f ${MMFOLDER}/mm.stop.checking ]; then echo echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}" MMSTOP @@ -437,7 +437,7 @@ MMSTATUS(){ echo -en " |- Verify routing through VPN : " scip=$(dig +short sc1.scity.us @10.10.10.5 -p 5053) # mmip=$(dig +short myip.opendns.com @resolver1.opendns.com) - mmip=$(dig +short myip.opendns.com @208.67.222.222) + mmip=$(dig +short +time=2 myip.opendns.com @208.67.222.222) if [ "${scip}" != "${mmip}" ]; then echo -e "${idsCL[Green]}Good${idsCL[Default]}" else