Update mm-scripts.sh
This commit is contained in:
@@ -483,13 +483,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=" |- {idsCL[LightCyan]}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=" |- {idsCL[LightCyan]}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]}"
|
||||
@@ -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=" |- {idsCL[LightCyan]}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=" |- {idsCL[LightCyan]}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]}"
|
||||
|
||||
Reference in New Issue
Block a user