From 2b3dce3feb715379abf8f5d789e120331db9abda Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 23 Mar 2023 21:45:31 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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};;