From 67c62fc829455e1b6b99efc2f189b3b46ce91c68 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 20 Feb 2023 22:10:56 -0600 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 4850500..723cbe7 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -344,8 +344,15 @@ MMSTATUS(){ echo "" fi else - if [ "$(systemctl is-active ${srvc})" != "active" ]; then + if [ "$(systemctl is-active ${srvc})" != "active" ] && [ "${srvc}" != "wireguard" ]; then echo -e "${idsCL[Red]}Not Running${idsCL[Default]}" + + + #OUT=$(ip link | grep "$VPN_INTERFACE") + #if [ ${#OUT} = 0 ]; then + elif [ "${srvc}" == "wireguard" ] && [ "$(ip link | grep $VPN_INTERFACE)" == "" ]; then + echo -e "${idsCL[Red]}Not Running${idsCL[Default]}" + else echo -e "${idsCL[Green]}Running${idsCL[Default]}" if [[ ${srvc} == *"vpn"* ]] || [[ ${srvc} == *"wireguard"* ]]; then