Update mm-scripts.sh

This commit is contained in:
2023-03-25 10:17:37 -05:00
parent 144ee09465
commit 6b547168db

View File

@@ -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)