diff options
Diffstat (limited to 'oma-dm')
-rwxr-xr-x | oma-dm | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -10,7 +10,7 @@ SCRIPTNAME=/etc/init.d/oma-dm do_start() { PID=`pidof $NAME` [ -z "$PID" ] || return 1 - $DAEMON + $DAEMON booting RETVAL=$? return "$RETVAL" } @@ -43,13 +43,8 @@ prt_res() { case "$1" in start) echo "Starting $DESC" "$NAME" - if [ -f /opt/data/fota/oma-dm/.oma-dm-agent-enabled ]; then - do_start - prt_res $? - else - echo "don't exist oma-dm-agent enabled file" - prt_res $? - fi + do_start + prt_res $? ;; stop) echo "Stopping $DESC" "$NAME" @@ -67,7 +62,8 @@ case "$1" in ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2 - exit 3 + exit 0 ;; esac +exit 0 |