From 3661e01a0d68998484c49dbdbe2c40a7fdc20042 Mon Sep 17 00:00:00 2001 From: heil Date: Wed, 17 Jun 2015 17:11:48 +0200 Subject: 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 --- utils/acpid/files/acpid.init | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 utils/acpid/files/acpid.init (limited to 'utils/acpid/files/acpid.init') diff --git a/utils/acpid/files/acpid.init b/utils/acpid/files/acpid.init new file mode 100644 index 000000000..3365aa022 --- /dev/null +++ b/utils/acpid/files/acpid.init @@ -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 +} -- cgit v1.2.3