diff --git a/mm-scripts.sh b/mm-scripts.sh index d761056..911b6c7 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -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 "${msg}${spc}: " + 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 "${msg}${spc}: " + 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 "${msg}${spc}: " + 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 "${msg}${spc}: " + echo -en "${msg}${spc} : " if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then echo -e "${idsCL[Green]}$defaultgw${idsCL[Default]}" @@ -525,7 +525,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 "${msg}${spc} : " 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)