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