Update mm-scripts.sh

This commit is contained in:
2023-02-23 21:34:14 -06:00
parent e550b08498
commit e79f61ba3a

View File

@@ -342,7 +342,6 @@ MMSTATUS(){
statusArray=(wireguard) statusArray=(wireguard)
statusArray+=(${SERVICES_CHECK[@]}) statusArray+=(${SERVICES_CHECK[@]})
echo echo
echo "HERE: ${1}"
for srvc in "${statusArray[@]}"; do for srvc in "${statusArray[@]}"; do
c=0; cw=36 spc='' c=0; cw=36 spc=''
spc1=$((${cw}-${#NM_SERVICES[${srvc}]})) spc1=$((${cw}-${#NM_SERVICES[${srvc}]}))
@@ -388,7 +387,7 @@ MMSTATUS(){
sleep 30s sleep 30s
MMSTART MMSTART
echo -e " ${NM_SERVICES[${srvc}]}$spc: ${idsCL[Green]}Running${idsCL[Default]}" echo -e " ${NM_SERVICES[wireguard]} : ${idsCL[Green]}Running${idsCL[Default]}"
zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3) zerogw=$(ip route show | grep 0.0.0.0 | cut -d' ' -f 3)
defaultgw=$(ip route show | grep default | cut -d' ' -f 3) defaultgw=$(ip route show | grep default | cut -d' ' -f 3)
echo -e " |- 0.0.0.0 gateway : ${idsCL[Green]}$zerogw${idsCL[Default]}" echo -e " |- 0.0.0.0 gateway : ${idsCL[Green]}$zerogw${idsCL[Default]}"