From aa383cb98427cf038ffc6c9b68d5fb804c6dcd2f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 23 Jan 2022 14:01:31 -0600 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index c95913b..326cdf3 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -73,11 +73,17 @@ MMSTOP(){ if [ ${action-x} ]; then case $action in start | check) + if [ -f /opt/mm.stop ]; then + echo -e "${idsCL[Yellow]}The system is currently stopped${idsCL[Default]}" + exit 0 + fi touch /opt/mm.stop MMSTART;; + stop) touch /opt/mm.stop MMSTOP;; + update);; *) @@ -87,7 +93,7 @@ if [ ${action-x} ]; then echo -e "}" echo "" echo "" - exit 0;; + exit 0;;z esac fi