290781b635
for PKG_HOME.haldaemon to default to /var/run/hald instead of /var/run/hal The init script hardcoded /var/run/hald so now use the corrected variable. Also, use OPSYSVARS for BUILDLINK_TRANSFORMS adding one for SunOS -z.ignore bump PKGREVISION
27 lines
463 B
Bash
27 lines
463 B
Bash
#!@RCD_SCRIPTS_SHELL@
|
|
#
|
|
# $NetBSD: hal.sh,v 1.3 2015/09/25 16:26:16 richard Exp $
|
|
#
|
|
# PROVIDE: hal
|
|
# REQUIRE: DAEMON dbus
|
|
# KEYWORD: shutdown
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="hal"
|
|
rcvar=$name
|
|
command="@PREFIX@/sbin/hald"
|
|
start_precmd=hal_prestart
|
|
|
|
hal_prestart() {
|
|
dir="@PKG_HOME.haldaemon@"
|
|
if @TEST@ ! -d $dir; then
|
|
@MKDIR@ $dir
|
|
@CHMOD@ 0755 $dir
|
|
@CHOWN@ @HAL_USER@:@HAL_GROUP@ $dir
|
|
fi
|
|
@CHMOD@ 0755 "@VARBASE@/cache"
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|