From 3cce380213ddebd3d9b6fb279c3a2d0901e25233 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 25 Mar 2023 11:17:18 -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 5eabb4f..56565dd 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -486,13 +486,13 @@ MMSTATUS(){ 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 -en "${idsCL[White]}${msg}${idsCL[LightCyan]}${spc} : ${idsCL[Default]}" echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}" 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]}" + echo -en "${idsCL[White]}${msg}${spc}${idsCL[LightCyan]} : ${idsCL[Default]}" if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then echo -e "${idsCL[Green]}$defaultgw${idsCL[Default]}" @@ -522,12 +522,12 @@ MMSTATUS(){ 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 -en "${idsCL[White]}${msg}${spc}${idsCL[LightCyan]} : ${idsCL[Default]}" echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}" msg=" |- ${idsCL[Default]}DEFAULT Gateway" c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6)) - until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + until [ $c = ${spc1} ]; do spc="${spc}${idsCL[LightCyan]} "; c=`expr $c + 1`; done echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}" if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then @@ -547,7 +547,7 @@ MMSTATUS(){ 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]}" + echo -en "${idsCL[White]}${msg}${spc}${idsCL[LightCyan]} : ${idsCL[Default]}" scip=$(/usr/bin/dig +short sc1.scity.us @10.10.10.5 -p 5053) # mmip=$(/usr/bin/dig +short myip.opendns.com @resolver1.opendns.com)