From 0b415046c348b73d398aba46e2cbdee26a83c454 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 25 Mar 2023 11:16:18 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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]}"