Update mm-scripts.sh
This commit is contained in:
@@ -555,6 +555,14 @@ MMSTOP(){
|
|||||||
echo
|
echo
|
||||||
touch ${TMPFOLDER}/mm.stop
|
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(){
|
MMSTATUS(){
|
||||||
statusArray=(wireguard)
|
statusArray=(wireguard)
|
||||||
@@ -1456,12 +1464,7 @@ if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then
|
|||||||
test) TEST;;
|
test) TEST;;
|
||||||
stop)
|
stop)
|
||||||
MMSTOP
|
MMSTOP
|
||||||
echo -en "${idsCL[LightCyan]}Stopping background MM scripts... ${idsCL[Default]}"
|
FULLSTOP
|
||||||
getMMbash=$(pgrep -f '/mm')
|
|
||||||
for i in $getMMbash; do
|
|
||||||
/bin/kill $i
|
|
||||||
done
|
|
||||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
|
||||||
;;
|
;;
|
||||||
start | check)
|
start | check)
|
||||||
if [ -f ${TMPFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then
|
if [ -f ${TMPFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user