Subject: adding extra to /etc/rc.d
To: None <netbsd-help@netbsd.org>
From: Mipam <mipam@ibb.net>
List: netbsd-help
Date: 03/05/2001 18:05:14
Hi,

On my previous question i guess that using the rc.d system by Lukem
would be convenient, but i dont understand i well enough.
in /etc/defaults i added an entry:

arpentries=YES
arpentries_flags="/etc/ARP_entries"

and in /etc/rc.d i made a file arpentries:

#!/bin/sh

# PROVIDE: arp_entries
# REQUIRE: network mountcritical

. /etc/rc.subr

name="arp"
rcvar=$name
command="/usr/sbin/${name}"

load_rc_config $name
run_rc_command "$1"

At startup i get the message:
/etc/rc: WARNING: $arp is not set properly.
What's wrong about it, i cant seem to figure it out,
what to change to make it work?
Now, at startup the files are first processed through rcorder
and my arpentries ends up completly last, how can i make
it so that it even is processed before dhclient, iow, that rcorder
places it before dhclient?
Bye,

Mipam.