From a3f3f44f9a064a0158ce9ad12af7a7cb26042c97 Mon Sep 17 00:00:00 2001 From: Li Wang Date: Fri, 29 Nov 2013 18:56:34 +0800 Subject: apmd: add status command Signed-off-by: Li Wang Signed-off-by: Richard Purdie --- meta/recipes-bsp/apmd/apmd-3.2.2-14/init | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'meta/recipes-bsp/apmd') 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 -- cgit 1.2.3-korg