summaryrefslogtreecommitdiff
path: root/net/arla/files/arlad.sh
blob: 1bd3cf7271ec66d97410d0804e41240de434690b (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
#!/bin/sh
#
# $NetBSD: arlad.sh,v 1.4 2002/09/25 00:06:34 jlam Exp $
#
# PROVIDE: arlad
# REQUIRE: beforemountlkm

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="arlad"
rcvar=$name
command="@PREFIX@/libexec/${name}"
command_args="-z /dev/xfs0"
required_files="/dev/xfs0"

if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
	load_rc_config $name
	eval [ -z "\$${rcvar}" ] && eval ${rcvar}=NO
	run_rc_command "$1"
else
	echo -n ' ${name}'
	${command} ${arlad_flags} ${command_args}
fi