Update mm-scripts.sh

This commit is contained in:
2022-01-23 14:22:41 -06:00
parent 3e7feca288
commit 99bf80a113

View File

@@ -71,33 +71,30 @@ MMSTOP(){
} }
if [ ${action-x} ]; then case $action in
case $action in start | check)
start | check) if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then
if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; then echo -e "${idsCL[Yellow]}The system is currently stopped${idsCL[Default]}"
echo -e "${idsCL[Yellow]}The system is currently stopped${idsCL[Default]}" exit 0
exit 0 fi
fi touch /opt/mm.stop
touch /opt/mm.stop MMSTART;;
MMSTART;;
stop) stop)
touch /opt/mm.stop touch /opt/mm.stop
MMSTOP;; MMSTOP;;
update);; update);;
*)
echo -e "Usage: ${idsCL[LightCyan]}mm${idsCL[Default]} {"
echo -e " ${idsCL[Yellow]}start${idsCL[Default]}"
echo -e " ${idsCL[Yellow]}stop${idsCL[Default]}"
echo -e "}"
echo ""
echo ""
exit 0;;
esac
fi
*)
echo -e "Usage: ${idsCL[LightCyan]}mm${idsCL[Default]} {"
echo -e " ${idsCL[Yellow]}start${idsCL[Default]}"
echo -e " ${idsCL[Yellow]}stop${idsCL[Default]}"
echo -e "}"
echo ""
echo ""
exit 0;;
esac
exit 0 exit 0