Update mm-scripts.sh
This commit is contained in:
@@ -486,13 +486,13 @@ MMSTATUS(){
|
|||||||
msg=" |- ${idsCL[Default]}0.0.0.0 Gateway"
|
msg=" |- ${idsCL[Default]}0.0.0.0 Gateway"
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6))
|
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}${idsCL[LightCyan]}${spc} : ${idsCL[Default]}"
|
||||||
echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}"
|
echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}"
|
||||||
|
|
||||||
msg=" |- ${idsCL[Default]}DEFAULT Gateway"
|
msg=" |- ${idsCL[Default]}DEFAULT Gateway"
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6))
|
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[LightCyan]} : ${idsCL[Default]}"
|
||||||
|
|
||||||
if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then
|
if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then
|
||||||
echo -e "${idsCL[Green]}$defaultgw${idsCL[Default]}"
|
echo -e "${idsCL[Green]}$defaultgw${idsCL[Default]}"
|
||||||
@@ -522,12 +522,12 @@ MMSTATUS(){
|
|||||||
msg=" |- ${idsCL[Default]}0.0.0.0 Gateway"
|
msg=" |- ${idsCL[Default]}0.0.0.0 Gateway"
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6))
|
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[LightCyan]} : ${idsCL[Default]}"
|
||||||
echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}"
|
echo -e "${idsCL[Green]}$zerogw${idsCL[Default]}"
|
||||||
|
|
||||||
msg=" |- ${idsCL[Default]}DEFAULT Gateway"
|
msg=" |- ${idsCL[Default]}DEFAULT Gateway"
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6))
|
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}${idsCL[LightCyan]} "; c=`expr $c + 1`; done
|
||||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||||
|
|
||||||
if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then
|
if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then
|
||||||
@@ -547,7 +547,7 @@ MMSTATUS(){
|
|||||||
msg=" |- ${idsCL[Default]}Verify routing through VPN"
|
msg=" |- ${idsCL[Default]}Verify routing through VPN"
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6))
|
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[LightCyan]} : ${idsCL[Default]}"
|
||||||
|
|
||||||
scip=$(/usr/bin/dig +short sc1.scity.us @10.10.10.5 -p 5053)
|
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)
|
# mmip=$(/usr/bin/dig +short myip.opendns.com @resolver1.opendns.com)
|
||||||
|
|||||||
Reference in New Issue
Block a user