From 8ee87e243630655c19179b21503cb3dea87e685d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 23 Feb 2023 20:41:10 -0600 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index c3b7370..30e0025 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -374,12 +374,12 @@ MMSTATUS(){ if [[ ${srvc} == *"vpn"* ]] || [[ ${srvc} == *"wireguard"* ]]; then 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 --> (${zerogw})" - echo -en " |- DEFAULT gateway --> (${defaultgw}) : " - if [ "${zerogw}" = "${defaultgw}" ]; then - echo -e "${idsCL[Green]}Matches 0.0.0.0 route${idsCL[Default]}" + echo -e " |- 0.0.0.0 gateway : ${idsCL[Green]}$zerogw${idsCL[Default]}" + echo -en " |- DEFAULT gateway : " + if [ "${zerogw}" == "${defaultgw}" ] && [ "${zerogw}" == "wg-torguard" ]; then + echo -e "${idsCL[Green]}$defaultgw${idsCL[Default]}" else - echo -e "${idsCL[Red]}Does not match 0.0.0.0 route${idsCL[Default]}" + echo -e "${idsCL[Red]}Not correct${idsCL[Default]}" if [ ! -f /opt/idssys/mediamanager/mm.stop ]; then echo echo -e "${idsCL[LightCyan]}Restarting system...${idsCL[Default]}"