aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/apmd
diff options
context:
space:
mode:
authorLi Wang <li.wang@windriver.com>2013-11-29 18:56:34 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-29 16:27:03 +0000
commita3f3f44f9a064a0158ce9ad12af7a7cb26042c97 (patch)
tree7b9586e6876f499cfe2578fec6b25bfdca76919b /meta/recipes-bsp/apmd
parent12c4094ce118569f9518e1b0625d110251595ef0 (diff)
downloadopenembedded-core-contrib-a3f3f44f9a064a0158ce9ad12af7a7cb26042c97.tar.gz
openembedded-core-contrib-a3f3f44f9a064a0158ce9ad12af7a7cb26042c97.tar.bz2
openembedded-core-contrib-a3f3f44f9a064a0158ce9ad12af7a7cb26042c97.zip
apmd: add status command
Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/apmd')
-rwxr-xr-xmeta/recipes-bsp/apmd/apmd-3.2.2-14/init9
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 268d4b26b7a..c0b41aa9d17 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