Re: why not have rcvars for all rc.d scripts? -- and downinterfaces and bootconf.sh not complete rc.d scripts

David Brownlee <[email protected]>
Newsgroups gmane.os.netbsd.devel.general
Message-ID <alpine.NEB.1.00.0802240938120.1310@localhost>
On Sun, 24 Feb 2008, der Mouse wrote:

>>> [...], I rather dislike the way it pushes configuration information
>>> out into a bunch of little files instead of keeping it in rc.conf -
>>> the aspect of that that bothers me most, personally, is network
>>> interface configuration.)
>> you can put a lot of network config (at least what i use) in rc.conf.
>
> Yes, but not if you have more than two addresses on an interface.  I
> added code to 3.1's rc.d/network to handle ifalias_xxN_1,
> ifalias_xxN_2, etc; if anyone wants it I'll be happy to share, but the
> comment

 	You can specify multiple aliases on the same ifaliase_<if>, var:

 	    ifconfig_fxp0=192.168.3.2
 	    ifaliases_fxp0="192.168.3.11 - 192.168.3.12 - 192.168.3.13 -"
 	    defaultroute=192.168.3.1

 	That would have worked in 3.x, and I believe in 2.x also...

-- 
 		David/absolute       -- www.NetBSD.org: No hype required --
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.