Update mm-scripts.sh

This commit is contained in:
2023-04-27 07:57:30 -05:00
parent 1140861d17
commit d1beba8a60

View File

@@ -45,8 +45,9 @@ cw_spc=40
MMSTART(){
echo "HERE: ${action} - ${1} - ${2}"
[ $VERBOSE = true ] && chktmstart=`date +%s`
([ "${1}" == "start" ] || [ "${1}" == "check" ]) && touch ${MMFOLDER}/mm.stop.checking
[ "${2}" == "vpn" ] && touch ${MMFOLDER}/mm.noservices
if [ "${1}" = "start" ] || [ "${1}" = "restart" ] || [ "${1}" = "" ]; then
GOFORSTART=true;
@@ -1331,8 +1332,7 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
exit 1
fi
fi
[ "${action}" != "status" ] && touch ${MMFOLDER}/mm.stop.checking
[ "${2}" == "vpn" ] && touch ${MMFOLDER}/mm.noservices
[ ! -f ${MMFOLDER}/mm.stop ] && MMSTART ${action} ${2}
[ "${action}" != "status" ] && rm -f ${MMFOLDER}/mm.stop.checking
;;