mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 18:32:13 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user