Update mm-scripts.sh

This commit is contained in:
2023-05-29 22:19:39 -05:00
parent fc5dacb366
commit 49323bdfa9

View File

@@ -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