Update mm-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user