blob: 9d76a1ad737b6e7ddda6a27a90485ceceb258f93 (
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
29
30
31
32
33
34
35
36
37
38
39
|
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/files/0.5.9-hald.rc,v 1.7 2007/04/24 15:42:01 cardoe Exp $
depend() {
need dbus
use logger acpid
after coldplug dns nscd
}
start() {
[ -z "${HALD_VERBOSE}" ] && HALD_VERBOSE="no"
ebegin "Starting Hardware Abstraction Layer daemon"
# REAL_ROOT=`mount -fv / | cut -d' ' -f1`
# TEST_ROOT=`cat /proc/mounts | cut -d' ' -f1 | head -n 2 | tail -n 1`
# if [ ! -e ${TEST_ROOT} ]; then
# echo "You need a ${TEST_ROOT} that points to your ${REAL_ROOT}"
# echo "See http://bugs.gentoo.org/show_bug.cgi?id=175243"
# echo "Quick fix is: ln -s ${REAL_ROOT} ${TEST_ROOT}"
# eend 2
# fi
if [ -f /proc/acpi/event ]; then
chgrp haldaemon /proc/acpi/event
chmod 440 /proc/acpi/event
fi
start-stop-daemon --start -q --exec /usr/sbin/hald -- --use-syslog --verbose=${HALD_VERBOSE}
eend $?
}
stop() {
ebegin "Stopping Hardware Abstraction Layer daemon"
start-stop-daemon --stop -q --pidfile /var/run/hald.pid
eend $?
}
|