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