Update mm-scripts.sh

This commit is contained in:
2022-10-31 21:40:43 -05:00
parent e8607903e3
commit 870a8b1a73

View File

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