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