aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/acpid.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-18 19:52:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-18 19:52:58 +0000
commit94dbf79b4bb7fd4c2970aec8593ba4a33cdbb6c4 (patch)
tree8b08c79307980212e4d9e7107b099613ef69144e /main/busybox-initscripts/acpid.initd
parentd03ad6f9292bdc62226897db4c93e9a435cbe2f7 (diff)
downloadaports-94dbf79b4bb7fd4c2970aec8593ba4a33cdbb6c4.tar.bz2
aports-94dbf79b4bb7fd4c2970aec8593ba4a33cdbb6c4.tar.xz
main/busybox-initscripts: added acpid init.d script
and default acpi script for poweroff
Diffstat (limited to 'main/busybox-initscripts/acpid.initd')
-rw-r--r--main/busybox-initscripts/acpid.initd20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/busybox-initscripts/acpid.initd b/main/busybox-initscripts/acpid.initd
new file mode 100644
index 0000000000..548d4ba404
--- /dev/null
+++ b/main/busybox-initscripts/acpid.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+
+depend() {
+ need dev
+ after hwdrivers modules
+}
+
+start() {
+ ebegin "Starting busybox acpid"
+ start-stop-daemon --start --exec /sbin/acpid \
+ -- $ACPID_OPTS
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping busybox acpid"
+ start-stop-daemon --stop --exec /sbin/acpid
+ eend $?
+}
+