CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
sdl_sound: initial import (verified compilation).
[attic/ports/opt-cross.git] / hal / rc.hald
1 #!/bin/sh
2 #
3 # /etc/rc.d/hald: start/stop HAL daemon
4 #
5
6 # fix owner/group permisions
7 if ! find /var/lib/hal -user haldaemon -group haldaemon 2>/dev/null; then
8 chown haldaemon:haldaemon $PKG/var/lib/hal
9 fi
10
11 case $1 in
12 start)
13 /usr/sbin/hald --daemon=yes --use-syslog
14 ;;
15 stop)
16 killall -q /usr/sbin/hald
17 ;;
18 restart)
19 $0 stop
20 sleep 2
21 $0 start
22 ;;
23 *)
24 echo "Usage: $0 [start|stop|restart]"
25 ;;
26 esac
27
28 # End of file