Update mm-scripts.sh

This commit is contained in:
2023-03-22 20:09:00 -05:00
parent 4665bbc8e9
commit b1163fe3ee

View File

@@ -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