Update mm-scripts.sh
This commit is contained in:
@@ -349,8 +349,8 @@ MMSTATUS(){
|
||||
else
|
||||
echo -e "${idsCL[Green]}Running${idsCL[Default]}"
|
||||
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}')
|
||||
zerogw=$(netstat -rn | grep '0.0.0.0' | head -1 | awk '{ print $2}')
|
||||
defaultgw=$(netstat -rn | grep 'default' | head -1 | awk '{ print $2}')
|
||||
echo -e " |- 0.0.0.0 gateway --> (${zerogw})"
|
||||
echo -en " |- DEFAULT gateway --> (${defaultgw}) : "
|
||||
if [ "${zerogw}" = "${defaultgw}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user