summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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