Update mm-scripts.sh
This commit is contained in:
@@ -71,33 +71,30 @@ MMSTOP(){
|
||||
}
|
||||
|
||||
|
||||
if [ ${action-x} ]; then
|
||||
case $action in
|
||||
start | check)
|
||||
if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; 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);;
|
||||
|
||||
*)
|
||||
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
|
||||
case $action in
|
||||
start | check)
|
||||
if [ -f /opt/mm.stop ] && [ "${action}" = "check" ]; 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);;
|
||||
|
||||
*)
|
||||
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
|
||||
Reference in New Issue
Block a user