Removal of deprecation for network_interfaces != AUTO
Brooks Davis
brooks at freebsd.org
Tue Jun 2 15:48:26 UTC 2009
On Mon, Jun 01, 2009 at 03:31:54PM -0700, Doug Barton wrote:
> Brooks Davis wrote:
> > On Sat, May 30, 2009 at 02:28:22PM -0700, Doug Barton wrote:
> >> Without objection I plan to commit the attached patch before the code
> >> slush, and to MFC the change.
> >
> > I object. Supporting values other than AUTO adds unnecessary
> > complexity (not a lot, but some) and IMO leads to difficulty diagnosing
> > proper system behavior.
>
> Can you provide examples? I've seen this argument before, but I
> seriously fail to understand it. The code to generate the list for
> AUTO is trivial, and I've never seen a support question that was
> caused by setting this to a different value.
It's been a while since I worked on the code and I'm busy so I'll
have to back off on that argument for the moment. I do remember it
complicating the logic, but don't have the time right now to recall what
I wanted to do.
I will assert that the second argument is wrong. The deprication notice
has reduced the number of errors related to network_interfaces a fair
bit. The biggest problem before was that people would omit lo0, but I
seem to recall there were several other misunderstanding that removed
feet.
> >> I've never seen the rationale for this, and I use a value other than
> >> AUTO personally for a script I have that tests to see if the wired
> >> interface is up and starts the wireless if not. I've also seen other
> >> users ask about this from time to time, so I'm sure I'm not alone.
> >
> > Please provide this script to support your argument.
>
> I set the value of network_interfaces to "lo0 test" and then I have a
> /etc/start_if.test script that checks to see if my wired interface is
> up, initializes it if it is, and if not it checks to see which
> wireless card I'm using and initializes that. I've actually spent
> quite a lot of time trying to figure out how to accomplish something
> similar with the current system but AFAICS we don't have a way to do
> that without hooking it in at the point where the network interfaces
> are actually configured.
Wouldn't /etc/start_if.<wired> do the same thing without having to set
network_interfaces?
> At some point in the future when I get a whole bunch of free time I'd
> like to extend what's in the base in order to do what I'm doing now
> with my little script ...
I'd agree we could use some better hooks for this sort of thing.
-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20090602/0141faab/attachment.pgp
More information about the freebsd-rc
mailing list