Update mm-scripts.sh

This commit is contained in:
2023-03-25 10:16:11 -05:00
parent 16616a5039
commit 144ee09465

View File

@@ -31,7 +31,7 @@ IFS=,
SERVICES_CHECK=(${SERVICESCHECK})
unset IFS
cw_spc=38
cw_spc=40
MMSTART(){
[ $VERBOSE = true ] && chktmstart=`date +%s`
@@ -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 "${idsCL[LightCyan]}${msg}${spc}: ${idsCL[Default]}"
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 "${idsCL[LightCyan]}${msg}${spc}: ${idsCL[Default]}"
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 "${idsCL[LightCyan]}${msg}${spc}: ${idsCL[Default]}"
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 "${idsCL[LightCyan]}${msg}${spc}: ${idsCL[Default]}"
echo -en "${msg}${spc}: "
if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "${VPN_INTERFACE}" ]; then
echo -e "${idsCL[Green]}$defaultgw${idsCL[Default]}"