Update mm-scripts.sh
This commit is contained in:
@@ -483,14 +483,14 @@ MMSTATUS(){
|
|||||||
zerogw=$(/sbin/ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
|
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)
|
defaultgw=$(/sbin/ip route show | grep default | cut -d' ' -f 3)
|
||||||
|
|
||||||
msg=" |- ${idsCL[LightCyan]}0.0.0.0 Gateway"
|
msg=" |- ${idsCL[Default]}0.0.0.0 Gateway"
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6))
|
||||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||||
echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}"
|
echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}"
|
||||||
|
|
||||||
msg=" |- ${idsCL[LightCyan]}DEFAULT Gateway"
|
msg=" |- ${idsCL[Default]}DEFAULT Gateway"
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6))
|
||||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||||
|
|
||||||
@@ -519,14 +519,14 @@ MMSTATUS(){
|
|||||||
zerogw=$(/sbin/ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
|
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)
|
defaultgw=$(/sbin/ip route show | grep default | cut -d' ' -f 3)
|
||||||
|
|
||||||
msg=" |- ${idsCL[LightCyan]}0.0.0.0 Gateway"
|
msg=" |- ${idsCL[Default]}0.0.0.0 Gateway"
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6))
|
||||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||||
echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}"
|
echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}"
|
||||||
|
|
||||||
msg=" |- ${idsCL[LightCyan]}DEFAULT Gateway"
|
msg=" |- ${idsCL[Default]}DEFAULT Gateway"
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6))
|
||||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||||
|
|
||||||
@@ -544,8 +544,8 @@ MMSTATUS(){
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg=" |- ${idsCL[LightCyan]}Verify routing through VPN"
|
msg=" |- ${idsCL[Default]}Verify routing through VPN"
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6))
|
||||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user