From d45041dde22ca798a81249c010f908eca9da6a0d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 25 Mar 2023 11:06:39 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index e5180c9..9cd47d1 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -461,7 +461,7 @@ MMSTATUS(){ c=0; spc='' spc1=$((${cw_spc}-${#MM_SERVICES[${srvc}]})) until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - echo -en " ${idsCL[LightCyan]}${MM_SERVICES[${srvc}]}$spc: ${idsCL[Default]}" + echo -en " ${idsCL[White]}${MM_SERVICES[${srvc}]}$spc: ${idsCL[Default]}" if [ "$(systemctl is-active ${srvc})" != "active" ] && [ "${srvc}" != "wireguard" ]; then if [ -f ${MMFOLDER}/mm.noservices ]; then @@ -485,13 +485,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 "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}" 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 "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}" if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then echo -e "${idsCL[Green]}$defaultgw${idsCL[Default]}" @@ -512,7 +512,7 @@ MMSTATUS(){ msg=" ${MM_SERVICES[wireguard]}" 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 "${idsCL[White]}${msg}${spc}: ${idsCL[Default]}" echo -e "${idsCL[Green]}Running${idsCL[Default]}" zerogw=$(/sbin/ip route show | grep 0.0.0.0 | cut -d' ' -f 3) @@ -521,13 +521,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 "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}" 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 "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}" if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then echo -e "${idsCL[Green]}$defaultgw${idsCL[Default]}" @@ -546,7 +546,7 @@ MMSTATUS(){ msg=" |- Verify routing through VPN" 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 "${idsCL[White]}${msg}${spc} : ${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)