summaryrefslogtreecommitdiff
path: root/net/arla/files/arlad.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/arla/files/arlad.sh')
-rw-r--r--net/arla/files/arlad.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/arla/files/arlad.sh b/net/arla/files/arlad.sh
new file mode 100644
index 00000000000..1bd3cf7271e
--- /dev/null
+++ b/net/arla/files/arlad.sh
@@ -0,0 +1,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