diff --git a/mm-scripts.sh b/mm-scripts.sh index 0ff5bed..5eabb4f 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -483,14 +483,14 @@ MMSTATUS(){ zerogw=$(/sbin/ip route show | grep 0.0.0.0 | cut -d' ' -f 3) defaultgw=$(/sbin/ip route show | grep default | cut -d' ' -f 3) - msg=" |- ${idsCL[LightCyan]}0.0.0.0 Gateway" - c=0; spc=''; spc1=$((${cw_spc}-${#msg})) + msg=" |- ${idsCL[Default]}0.0.0.0 Gateway" + c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6)) until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}" echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}" - msg=" |- ${idsCL[LightCyan]}DEFAULT Gateway" - c=0; spc=''; spc1=$((${cw_spc}-${#msg})) + msg=" |- ${idsCL[Default]}DEFAULT Gateway" + c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6)) until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}" @@ -519,14 +519,14 @@ MMSTATUS(){ zerogw=$(/sbin/ip route show | grep 0.0.0.0 | cut -d' ' -f 3) defaultgw=$(/sbin/ip route show | grep default | cut -d' ' -f 3) - msg=" |- ${idsCL[LightCyan]}0.0.0.0 Gateway" - c=0; spc=''; spc1=$((${cw_spc}-${#msg})) + msg=" |- ${idsCL[Default]}0.0.0.0 Gateway" + c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6)) until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}" echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}" - msg=" |- ${idsCL[LightCyan]}DEFAULT Gateway" - c=0; spc=''; spc1=$((${cw_spc}-${#msg})) + msg=" |- ${idsCL[Default]}DEFAULT Gateway" + c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6)) until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}" @@ -544,8 +544,8 @@ MMSTATUS(){ fi fi - msg=" |- ${idsCL[LightCyan]}Verify routing through VPN" - c=0; spc=''; spc1=$((${cw_spc}-${#msg})) + msg=" |- ${idsCL[Default]}Verify routing through VPN" + c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6)) until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"