Update mm-scripts.sh

This commit is contained in:
2022-04-18 21:04:16 -05:00
parent 38216c1776
commit c7c8c080f5

View File

@@ -176,8 +176,8 @@ MMSTATUS(){
if [[ ${srvc} == *"vpn"* ]]; then
zerogw=$(netstat -r | grep '0.0.0.0' | head -1 | awk '{ print $2}')
defaultgw=$(netstat -r | grep 'default' | head -1 | awk '{ print $2}')
echo -e " -- 0.0.0.0 gateway --> (${zerogw})"
echo -en " -- DEFAULT gateway --> (${defaultgw}) : "
echo -e " |- 0.0.0.0 gateway --> (${zerogw})"
echo -en " |- DEFAULT gateway --> (${defaultgw}) : "
if [ "${zerogw}" = "${defaultgw}" ]; then
echo -e "${idsCL[Green]}Matches 0.0.0.0 route${idsCL[Default]}"
else