Update mm-scripts.sh
This commit is contained in:
@@ -69,26 +69,6 @@ MMSTOP(){
|
||||
|
||||
}
|
||||
|
||||
if [[ ${1} = "start" ]]; then
|
||||
touch /opt/mm.stop
|
||||
MMSTART
|
||||
|
||||
elif [[ ${1} = "stop" ]]; then
|
||||
touch /opt/mm.stop
|
||||
MMSTOP
|
||||
|
||||
elif [ ! -f /opt/mm.stop ]; then
|
||||
if [[ ${#OUT} = 0 ]]; then
|
||||
touch /opt/mm.stop
|
||||
MMSTOP
|
||||
MMSTART
|
||||
|
||||
elif [ ! -f /opt/mm.stop ]; then
|
||||
touch /opt/mm.stop
|
||||
MMSTART
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [ ${action-x} ]; then
|
||||
case $action in
|
||||
@@ -98,6 +78,7 @@ if [ ${action-x} ]; then
|
||||
stop)
|
||||
touch /opt/mm.stop
|
||||
MMSTOP;;
|
||||
update);;
|
||||
|
||||
*)
|
||||
echo -e "Usage: ${idsCL[LightCyan]}mm${idsCL[Default]} {"
|
||||
|
||||
Reference in New Issue
Block a user