From 49323bdfa9c3c6f0242f65cf1dcf0a3a91710210 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 29 May 2023 22:19:39 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 27f76f8..d0ad318 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -555,6 +555,14 @@ MMSTOP(){ echo touch ${TMPFOLDER}/mm.stop } +FULLSTOP(){ + echo -en "${idsCL[LightCyan]}Stopping background MM scripts... ${idsCL[Default]}" + getMMbash=$(pgrep -f '/mm') + for i in $getMMbash; do + /bin/kill $i + done + echo -e "${idsCL[Green]}Done${idsCL[Default]}" +} MMSTATUS(){ statusArray=(wireguard) @@ -1456,12 +1464,7 @@ if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then test) TEST;; stop) MMSTOP - echo -en "${idsCL[LightCyan]}Stopping background MM scripts... ${idsCL[Default]}" - getMMbash=$(pgrep -f '/mm') - for i in $getMMbash; do - /bin/kill $i - done - echo -e "${idsCL[Green]}Done${idsCL[Default]}" + FULLSTOP ;; start | check) if [ -f ${TMPFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then