From owner-freebsd-current Fri Apr 12 08:48:44 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA13101 for current-outgoing; Fri, 12 Apr 1996 08:48:44 -0700 (PDT) Received: from GndRsh.aac.dev.com (GndRsh.aac.dev.com [198.145.92.241]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA13059 Fri, 12 Apr 1996 08:48:37 -0700 (PDT) Received: (from rgrimes@localhost) by GndRsh.aac.dev.com (8.6.12/8.6.12) id IAA21589; Fri, 12 Apr 1996 08:46:55 -0700 From: "Rodney W. Grimes" Message-Id: <199604121546.IAA21589@GndRsh.aac.dev.com> Subject: Re: feedback sought on proposed change to netstart To: jgreco@brasil.moneng.mei.com (Joe Greco) Date: Fri, 12 Apr 1996 08:46:55 -0700 (PDT) Cc: pst@freefall.freebsd.org, current@freefall.freebsd.org In-Reply-To: <199604121409.JAA17433@brasil.moneng.mei.com> from Joe Greco at "Apr 12, 96 09:09:55 am" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > Currently /etc/netstart evaluates /etc/start_if. if the file exists, > > > and THEN does any standard ifconfig commands if defined. > > > > > > This seems very backwards and broken to me. Here's my justification: > > > Basic stuff can be done by executing the commands in sysconfig, just like > > > we always do. /etc/start_if. is for additional stuff or exceptions, > > > such as configuring aliases. > > > > > > It makes sense to set up the interface, first, and then get fancy with it. > > > > You can't ifconfig some interfaces until they are setup, you don't want > > to ifconfig a slip line until sl0 is setup, same goes for ppp. > > > > start_if. was not meant to add aliases, it was added to ``start'' > > the interface so you could configure it. > > > > Perhaps we need to add a /etc/setup_if. to handle aliases, etc. > > > > > Here's the change, 24 hours to comment: > > > > Don't.... you'll break all the folks who are using start_if. for > > what it was meant to do. > > Rod, > > See my previous mail. What if we _remove_ the ifconfig in netstart in the > case where there is a start_if. file? > > Theory being, that script is entirely responsible for starting the > interface. In my book that may include establishing a physical link, and/or > setting up whatever addresses and aliases are appropriate. > > This seems like a very generalized solution to me (at least, it's what I do > here, and it works great for me). That seems quite reasonable... I have done this by setting ifconfig_${INT} to null in /etc/sysconfig. That does have the nasty side effect of of echoing the config parameters out twice, but it does what you want. I have no objection to the removal of if_config ${ifn} ${ifconfig_args] if an /etc/start_if.${ifn} is called. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Reliable computers for FreeBSD