acpid: Import from oldpackages, update to latest version, add myself as

maintainer, ensure musl compatibility

 - with acpid kvm based setups can react on acpi shutdown and reboot
 actions

Signed-off-by: heil <heil@terminal-consulting.de>
This commit is contained in:
heil
2015-06-17 17:11:48 +02:00
parent 73a853e1cf
commit 3661e01a0d
6 changed files with 255 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/ash /etc/rc.common
# Copyright (C) 2009-2010 OpenWrt.org
START=99
STOP=80
ACPID_BIN="/usr/sbin/acpid"
ACPID_PID="/var/run/acpid.pid"
start() {
[ -x "$ACPID_BIN" ] || return 1
start-stop-daemon -S -x $ACPID_BIN -p $ACPID_PID
}
boot() {
# Do nothing on boot
[ -x "$ACPID_BIN" ] || return 1
start-stop-daemon -S -x $ACPID_BIN -p $ACPID_PID
exit 0
}
stop() {
service_kill ${ACPID_BIN##*/} $ACPID_PID
rm -f $ACPID_PID
}