Update mm-scripts.sh

This commit is contained in:
2022-05-12 20:29:41 -05:00
parent a7eaae5b57
commit 7ae052ca2c

View File

@@ -80,8 +80,8 @@ MMSTART(){
checked=false checked=false
cc=0 cc=0
until [ "${checked}" = "" ]; do until [ "${checked}" = "" ]; do
zerogw=$(netstat -r | grep '0.0.0.0' | head -1 | awk '{ print $2}') zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
defaultgw=$(netstat -r | grep 'default' | head -1 | awk '{ print $2}') defaultgw=$(ip route show | grep default | cut -d' ' -f 3)
if [ "${zerogw}" = "${defaultgw}" ]; then if [ "${zerogw}" = "${defaultgw}" ]; then
checked="" checked=""
fi fi