pentoo-overlay/sys-power/acpid/files/acpid-2.0.3-init.d
Zero_Chaos e4ff37c83b sys-power/acpid: added our own acpid so I could influence the processor on AC vs on BATT
this action should completely replace cpufreqd and waste less CPU
2010-10-08 17:24:38 +00:00

30 lines
668 B
Makefile

#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.3-init.d,v 1.1 2010/04/04 16:39:09 ssuominen Exp $
opts="reload"
depend() {
need localmount
use logger
before hald
}
start() {
ebegin "Starting acpid"
start-stop-daemon --start --quiet --exec /usr/sbin/acpid -- ${ACPID_OPTIONS}
eend $?
}
stop() {
ebegin "Stopping acpid"
start-stop-daemon --stop --exec /usr/sbin/acpid
eend $?
}
reload() {
ebegin "Reloading acpid configuration"
start-stop-daemon --stop --oknodo --exec /usr/sbin/acpid --signal HUP
eend $?
}