diff --git a/mm-scripts.sh b/mm-scripts.sh index 1c2cced..1e984ce 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -488,7 +488,7 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then fi case $action in start | check) - if ([ -f ${MMFOLDER}/mm.stop ] || [ -f ${MMFOLDER}/mm.stop.checking ]) && [ "${action}" = "check" ]; then + if [ -f ${MMFOLDER}/mm.stop* ] && [ "${action}" = "check" ]; then if [ -f ${MMFOLDER}/mm.stop.checking ]; then checkstopped=`expr $(date +%s) - $(stat -c %Y ${MMFOLDER}/mm.stop.checking)` if [ $checkstopped -gt 900 ]; then @@ -516,6 +516,8 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then fi # touch ${MMFOLDER}/mm.stop [ "${action}" = "check" ] && touch ${MMFOLDER}/mm.stop.checking + echo 'yes' + MMSTART ${action} ${2};; stop)