Update mm-scripts.sh
This commit is contained in:
@@ -351,10 +351,8 @@ MMSTATUS(){
|
||||
if [[ ${srvc} == *"vpn"* ]]; then
|
||||
# zerogw=$(netstat -rn | grep '0.0.0.0' | head -1 | awk '{ print $2}')
|
||||
# defaultgw=$(netstat -rn | grep 'default' | head -1 | awk '{ print $2}')
|
||||
|
||||
zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
|
||||
defaultgw=$(ip route show | grep default | cut -d' ' -f 3)
|
||||
|
||||
echo -e " |- 0.0.0.0 gateway --> (${zerogw})"
|
||||
echo -en " |- DEFAULT gateway --> (${defaultgw}) : "
|
||||
if [ "${zerogw}" = "${defaultgw}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user