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