From 144ee094652b35de6ac0046e087e81722ed1d5f1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 25 Mar 2023 10:16:11 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index beaa083..d761056 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -31,7 +31,7 @@ IFS=, SERVICES_CHECK=(${SERVICESCHECK}) unset IFS -cw_spc=38 +cw_spc=40 MMSTART(){ [ $VERBOSE = true ] && chktmstart=`date +%s` @@ -464,13 +464,13 @@ MMSTATUS(){ msg=" |- 0.0.0.0 Gateway" c=0; spc=''; spc1=$((${cw_spc}-${#msg})) until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - echo -en "${idsCL[LightCyan]}${msg}${spc}: ${idsCL[Default]}" + echo -en "${msg}${spc}: " echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}" msg=" |- DEFAULT Gateway" c=0; spc=''; spc1=$((${cw_spc}-${#msg})) until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - echo -en "${idsCL[LightCyan]}${msg}${spc}: ${idsCL[Default]}" + echo -en "${msg}${spc}: " if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then echo -e "${idsCL[Green]}$defaultgw${idsCL[Default]}" @@ -500,13 +500,13 @@ MMSTATUS(){ msg=" |- 0.0.0.0 Gateway" c=0; spc=''; spc1=$((${cw_spc}-${#msg})) until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - echo -en "${idsCL[LightCyan]}${msg}${spc}: ${idsCL[Default]}" + echo -en "${msg}${spc}: " echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}" msg=" |- DEFAULT Gateway" c=0; spc=''; spc1=$((${cw_spc}-${#msg})) until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - echo -en "${idsCL[LightCyan]}${msg}${spc}: ${idsCL[Default]}" + echo -en "${msg}${spc}: " if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then echo -e "${idsCL[Green]}$defaultgw${idsCL[Default]}"