diff options
-rwxr-xr-x | meta/recipes-bsp/apmd/apmd-3.2.2-14/init | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-bsp/apmd/apmd-3.2.2-14/init b/meta/recipes-bsp/apmd/apmd-3.2.2-14/init index 268d4b26b7..c0b41aa9d1 100755 --- a/meta/recipes-bsp/apmd/apmd-3.2.2-14/init +++ b/meta/recipes-bsp/apmd/apmd-3.2.2-14/init @@ -8,6 +8,9 @@ # Short-Description: Advanced Power Management daemon ### END INIT INFO +# Source function library. +. /etc/init.d/functions + PATH=/bin:/usr/bin:/sbin:/usr/sbin [ -f /etc/default/rcS ] && . /etc/default/rcS @@ -30,13 +33,17 @@ case "$1" in -x /usr/sbin/apmd echo "apmd." ;; + status) + status /usr/sbin/apmd; + exit $? + ;; restart|force-reload) $0 stop $0 start exit ;; *) - echo "Usage: /etc/init.d/apmd {start|stop|restart|force-reload}" + echo "Usage: /etc/init.d/apmd {start|stop|status|restart|force-reload}" exit 1 ;; esac |