From fc5dacb366e50bdf6bd1f25e1832df290f68853f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 29 May 2023 22:17:54 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index eda5181..27f76f8 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -1454,7 +1454,15 @@ if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then vpninfo) GETVPNINFO;; speedtest) VPNSPEEDTEST;; test) TEST;; - stop) MMSTOP;; + 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]}" + ;; start | check) if [ -f ${TMPFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then if [ "${2}" != "q" ]; then