Update mm-scripts.sh
This commit is contained in:
@@ -372,22 +372,22 @@ MMSTATUS(){
|
|||||||
else
|
else
|
||||||
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
|
||||||
if [[ ${srvc} == *"vpn"* ]] || [[ ${srvc} == *"wireguard"* ]]; then
|
if [[ ${srvc} == *"vpn"* ]] || [[ ${srvc} == *"wireguard"* ]]; then
|
||||||
# zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
|
zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
|
||||||
# defaultgw=$(ip route show | grep default | cut -d' ' -f 3)
|
defaultgw=$(ip route show | grep default | cut -d' ' -f 3)
|
||||||
# echo -e " |- 0.0.0.0 gateway --> (${zerogw})"
|
echo -e " |- 0.0.0.0 gateway --> (${zerogw})"
|
||||||
# echo -en " |- DEFAULT gateway --> (${defaultgw}) : "
|
echo -en " |- DEFAULT gateway --> (${defaultgw}) : "
|
||||||
# if [ "${zerogw}" = "${defaultgw}" ]; then
|
if [ "${zerogw}" = "${defaultgw}" ]; then
|
||||||
# echo -e "${idsCL[Green]}Matches 0.0.0.0 route${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Matches 0.0.0.0 route${idsCL[Default]}"
|
||||||
# else
|
else
|
||||||
# echo -e "${idsCL[Red]}Does not match 0.0.0.0 route${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Does not match 0.0.0.0 route${idsCL[Default]}"
|
||||||
# if [ ! -f /opt/idssys/mediamanager/mm.stop ]; then
|
if [ ! -f /opt/idssys/mediamanager/mm.stop ]; then
|
||||||
# echo
|
echo
|
||||||
# echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}"
|
||||||
# MMSTOP
|
MMSTOP
|
||||||
# sleep 30s
|
sleep 30s
|
||||||
# MMSTART
|
MMSTART
|
||||||
# fi
|
fi
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
echo -en " |- Verify traffic route to VPN -> : "
|
echo -en " |- Verify traffic route to VPN -> : "
|
||||||
scip=$(dig +short sc1.scity.us @9.9.9.9)
|
scip=$(dig +short sc1.scity.us @9.9.9.9)
|
||||||
|
|||||||
Reference in New Issue
Block a user