From owner-freebsd-rc@FreeBSD.ORG Tue Jun 2 15:48:25 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 200A2106575C for ; Tue, 2 Jun 2009 15:48:25 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 80B838FC1F for ; Tue, 2 Jun 2009 15:48:24 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id n52FmXag015182; Tue, 2 Jun 2009 10:48:33 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id n52FmXWE015181; Tue, 2 Jun 2009 10:48:33 -0500 (CDT) (envelope-from brooks) Date: Tue, 2 Jun 2009 10:48:33 -0500 From: Brooks Davis To: Doug Barton Message-ID: <20090602154833.GE14685@lor.one-eyed-alien.net> References: <4A21A4F6.5060709@dougbarton.us> <20090601212506.GA2351@lor.one-eyed-alien.net> <4A2456DA.8040104@dougbarton.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u5E4XgoOPWr4PD9E" Content-Disposition: inline In-Reply-To: <4A2456DA.8040104@dougbarton.us> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Tue, 02 Jun 2009 10:48:33 -0500 (CDT) Cc: freebsd-rc@freebsd.org Subject: Re: Removal of deprecation for network_interfaces != AUTO X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 15:48:26 -0000 --u5E4XgoOPWr4PD9E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > >=20 > > I object. Supporting values other than AUTO adds unnecessary > > complexity (not a lot, but some) and IMO leads to difficulty diagnosing > > proper system behavior.=20 >=20 > 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. > >=20 > > Please provide this script to support your argument. >=20 > 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. 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 --u5E4XgoOPWr4PD9E Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFKJUnRXY6L6fI4GtQRAv14AJsG2kjPbIZd6fiVJY/UumjVdDjZygCfWXew zk/iSFX9WAO9X886HfgCX28= =0Moo -----END PGP SIGNATURE----- --u5E4XgoOPWr4PD9E--