summaryrefslogtreecommitdiffstats
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-30 22:26:28 +0000
commit813aafe53854a744facc3482d6a97bbe9c21dcfa (patch)
tree37273d5e1a71bf4102cab067b05cefddae6ce904
parentcb8e55cfb4e2c0a37ea8ea422195210756ae6110 (diff)
downloadpoky-813aafe53854a744facc3482d6a97bbe9c21dcfa.tar.gz
apmd: add status command
(From OE-Core rev: a3f3f44f9a064a0158ce9ad12af7a7cb26042c97) Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 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 @@
8# Short-Description: Advanced Power Management daemon 8# Short-Description: Advanced Power Management daemon
9### END INIT INFO 9### END INIT INFO
10 10
11# Source function library.
12. /etc/init.d/functions
13
11PATH=/bin:/usr/bin:/sbin:/usr/sbin 14PATH=/bin:/usr/bin:/sbin:/usr/sbin
12 15
13[ -f /etc/default/rcS ] && . /etc/default/rcS 16[ -f /etc/default/rcS ] && . /etc/default/rcS
@@ -30,13 +33,17 @@ case "$1" in
30 -x /usr/sbin/apmd 33 -x /usr/sbin/apmd
31 echo "apmd." 34 echo "apmd."
32 ;; 35 ;;
36 status)
37 status /usr/sbin/apmd;
38 exit $?
39 ;;
33 restart|force-reload) 40 restart|force-reload)
34 $0 stop 41 $0 stop
35 $0 start 42 $0 start
36 exit 43 exit
37 ;; 44 ;;
38 *) 45 *)
39 echo "Usage: /etc/init.d/apmd {start|stop|restart|force-reload}" 46 echo "Usage: /etc/init.d/apmd {start|stop|status|restart|force-reload}"
40 exit 1 47 exit 1
41 ;; 48 ;;
42esac 49esac