diff --git a/mm-scripts.sh b/mm-scripts.sh index f3800ea..8dc125e 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -292,11 +292,13 @@ MMSTATUS(){ echo -e "${idsCL[Green]}Matches 0.0.0.0 route${idsCL[Default]}" else echo -e "${idsCL[Red]}Does not match 0.0.0.0 route${idsCL[Default]}" - echo - echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}" - MMSTOP - sleep 30s - MMSTART + if [ ! -f /opt/mm.stop ]; then + echo + echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}" + MMSTOP + sleep 30s + MMSTART + fi fi echo -en " |- Verify traffic route to VPN -> : " @@ -306,11 +308,13 @@ MMSTATUS(){ echo -e "${idsCL[Green]}Good${idsCL[Default]}" else echo -e "${idsCL[Red]}Not Good${idsCL[Default]}" - echo - echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}" - MMSTOP - sleep 30s - MMSTART + if [ ! -f /opt/mm.stop ]; then + echo + echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}" + MMSTOP + sleep 30s + MMSTART + fi fi echo