Update mm-scripts.sh

This commit is contained in:
2023-03-25 11:12:23 -05:00
parent f806e5ee39
commit 868b358e91

View File

@@ -483,16 +483,16 @@ MMSTATUS(){
zerogw=$(/sbin/ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
defaultgw=$(/sbin/ip route show | grep default | cut -d' ' -f 3)
msg=" |- 0.0.0.0 Gateway"
msg=" |- {idsCL[LightCyan]}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"
msg=" |- {idsCL[LightCyan]}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]}"
@@ -519,13 +519,13 @@ MMSTATUS(){
zerogw=$(/sbin/ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
defaultgw=$(/sbin/ip route show | grep default | cut -d' ' -f 3)
msg=" |- 0.0.0.0 Gateway"
msg=" |- {idsCL[LightCyan]}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[White]}${msg}${spc} : ${idsCL[Default]}"
echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}"
msg=" |- DEFAULT Gateway"
msg=" |- {idsCL[LightCyan]}DEFAULT Gateway"
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"