Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / hal / files / hal.sh
blob818e85a23f80caba00303b9776a2ca6ba73b734e
1 #!@RCD_SCRIPTS_SHELL@
3 # $NetBSD: hal.sh,v 1.1.1.1 2008/11/22 15:20:51 jmcneill Exp $
5 # PROVIDE: hal
6 # REQUIRE: DAEMON dbus
7 # KEYWORD: shutdown
9 . /etc/rc.subr
11 name="hal"
12 rcvar=$name
13 command="@PREFIX@/sbin/hald"
14 start_precmd=hal_prestart
16 hal_prestart() {
17 dir="@VARBASE@/run/hald"
18 if @TEST@ ! -d $dir; then
19 @MKDIR@ $dir
20 @CHMOD@ 0755 $dir
21 @CHOWN@ @HAL_USER@:@HAL_GROUP@ $dir
23 @CHMOD@ 0755 "@VARBASE@/cache"
26 load_rc_config $name
27 run_rc_command "$1"