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]}"