From 870a8b1a73266fdbe52d13694238bdbeedfcbcbd Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 31 Oct 2022 21:40:43 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) 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