blob: 29a8629774ff50b07b61c9ae10689b2de82df323 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid.rc6,v 1.1 2005/03/15 19:15:53 ciaranm Exp $
depend() {
need localmount
}
checkconfig() {
if [ ! -e /proc/acpi ] ; then
eerror "ACPI support has not been compiled into the kernel"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Starting acpid"
start-stop-daemon --start --quiet --exec /usr/sbin/acpid -- -c /etc/acpi/events
eend $?
}
stop() {
ebegin "Stopping acpid"
start-stop-daemon --stop --quiet --exec /usr/sbin/acpid
eend $?
}
|