From 6e1a22b4c8339f536de64a7ed18c1d983928c35b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 23 Feb 2023 21:48:43 -0600 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index e5c4f17..dd67318 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -32,7 +32,7 @@ unset IFS MMSTART(){ [ $VERBOSE = true ] && chktmstart=`date +%s` - if [ "${1}" = "start" ] || [ "${1}" = "" ]; then + if [ "${1}" = "start" ] || [ "${1}" = "restart" ] || [ "${1}" = "" ]; then GOFORSTART=true; elif [ "${1}" = "check" ] && [ "$(ip link | grep "wg-torguard")" = "" ] && [ ! -f /opt/idssys/mediamanager/mm.vpn* ]; then @@ -479,7 +479,7 @@ if [ ! -f /opt/idssys/mediamanager/mm.update.stop ]; then echo -en "${idsCL[LightCyan]}Pausing for 10secs... ${idsCL[Default]}" sleep 10s echo -e "${idsCL[Green]}Done${idsCL[Default]}" - MMSTART;; + MMSTART ${action};; status) if [ -f /opt/idssys/mediamanager/mm.stop ]; then