diff options
Diffstat (limited to 'net/arla/files/arlad')
-rw-r--r-- | net/arla/files/arlad | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/net/arla/files/arlad b/net/arla/files/arlad index 85246096400..13c431290de 100644 --- a/net/arla/files/arlad +++ b/net/arla/files/arlad @@ -1,12 +1,13 @@ #!/bin/sh -# $NetBSD: arlad,v 1.1 2001/08/09 13:48:59 wennmach Exp $ # -# start script for arlad (for NetBSD-1.5 and newer) - +# $NetBSD: arlad,v 1.2 2002/08/07 08:30:51 jlam Exp $ +# # PROVIDE: arlad # REQUIRE: beforemountlkm -. /etc/rc.subr +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi name="arlad" rcvar=$name @@ -14,5 +15,10 @@ command="@PREFIX@/libexec/${name}" command_args="-z /dev/xfs0" required_files="/dev/xfs0" -load_rc_config $name -run_rc_command "$1" +if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then + load_rc_config $name + run_rc_command "$1" +else + echo -n ' ${name}' + ${command} ${arlad_flags} ${command_args} +fi |