diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2015-08-11 18:27:16 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-16 09:25:46 +0100 |
commit | cc636032617964818211ccb47a9fb6d6163af8c0 (patch) | |
tree | d3b3121c4244853abb3ec42c1fa844da71fcfbbd /meta/recipes-bsp/apmd/apmd/init | |
parent | 5c3682136358272a3a83300a865ff9b551b31834 (diff) | |
download | openembedded-core-contrib-cc636032617964818211ccb47a9fb6d6163af8c0.tar.gz |
apmd: update to 3.2.2-15
This basically means replacing a "-14" Debian patch with "-15" patch.
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-bsp/apmd/apmd/init')
-rwxr-xr-x | meta/recipes-bsp/apmd/apmd/init | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-bsp/apmd/apmd/init b/meta/recipes-bsp/apmd/apmd/init new file mode 100755 index 0000000000..c0b41aa9d1 --- /dev/null +++ b/meta/recipes-bsp/apmd/apmd/init @@ -0,0 +1,51 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: apmd +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# 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 +[ -f /etc/default/apmd ] && . /etc/default/apmd + +case "$1" in + start) + echo -n "Starting advanced power management daemon: " + start-stop-daemon -S -x /usr/sbin/apmd -- \ + -P /etc/apm/apmd_proxy $APMD + if [ $? = 0 ]; then + echo "apmd." + else + echo "(failed.)" + fi + ;; + stop) + echo -n "Stopping advanced power management daemon: " + start-stop-daemon -K \ + -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|status|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 |