Subversion Repositories configs

Rev

Rev 4 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 62
Line 18... Line 18...
18
# Description: Listen and dispatch ACPI events from the kernel
18
# Description: Listen and dispatch ACPI events from the kernel
19
### END INIT INFO
19
### END INIT INFO
20
 
20
 
21
# Source function library.
21
# Source function library.
22
. /etc/rc.d/init.d/functions
22
. /etc/rc.d/init.d/functions
-
 
23
 
-
 
24
# Source acpid configuration
-
 
25
[ -f /etc/sysconfig/acpid ] && . /etc/sysconfig/acpid
23
 
26
 
24
RETVAL=0
27
RETVAL=0
25
 
28
 
26
#
29
#
27
# See how we were called.
30
# See how we were called.
Line 43... Line 46...
43
	[ -f /proc/acpi/event ] || exit 1
46
	[ -f /proc/acpi/event ] || exit 1
44
 
47
 
45
	# Check if it is already running
48
	# Check if it is already running
46
	if [ ! -f /var/lock/subsys/acpid ]; then
49
	if [ ! -f /var/lock/subsys/acpid ]; then
47
		echo -n $"Starting acpi daemon: "	
50
		echo -n $"Starting acpi daemon: "	
48
	    daemon /usr/sbin/acpid
51
	    daemon /usr/sbin/acpid $OPTIONS
49
	    RETVAL=$?
52
	    RETVAL=$?
50
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
53
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
51
	    echo
54
	    echo
52
	fi
55
	fi
53
	return $RETVAL
56
	return $RETVAL