Update mm-scripts.sh

This commit is contained in:
2022-06-04 20:45:22 -05:00
parent 52299aeeb2
commit 35f1cb99f0

View File

@@ -193,6 +193,7 @@ MMSTOP(){
done
echo "$(date) - Media Management systems stopped" >> $logfile
/bin/ip route add default via 10.10.0.1
[ $VERBOSE = true ] && echo "$(date) - Added default route back in" >> $logfile
echo -e "${idsCL[Green]} done${idsCL[Default]}"
echo
@@ -241,6 +242,11 @@ 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 10s
MMSTART start
fi
echo -en " |- Verify traffic route to VPN -> : "
@@ -250,6 +256,11 @@ 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 10s
MMSTART start
fi
echo