9 #Check for running dbus, start when not running
10 ck_daemon dbus
&& /etc
/rc.d
/dbus start
11 if [ -x /etc
/rc.d
/acpid
]; then
12 ck_daemon acpid
&& /etc
/rc.d
/acpid start
14 stat_busy
"Starting Hardware Abstraction Layer"
15 if [ ! -x /var
/cache
/hald
] ; then
16 install -m755 -g 82 -o 82 -d /var
/cache
/hald
18 if [ ! -x /var
/run
/hald
]; then
19 install -m755 -g 82 -o 82 -d /var
/run
/hald
21 if [ ! -x /var
/run
/hald
/hald-local
]; then
22 install -m755 -g 0 -o 0 -d /var
/run
/hald
/hald-local
24 if [ ! -x /var
/run
/hald
/hald-runner
]; then
25 install -m755 -g 0 -o 0 -d /var
/run
/hald
/hald-runner
36 stat_busy
"Stopping Hardware Abstraction Layer"
37 [ -f /var
/run
/hald.pid
] && kill `cat /var/run/hald.pid` &> /dev
/null
51 echo "usage: $0 {start|stop|restart}"