From owner-freebsd-hackers Mon Sep 10 10: 0:40 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (sentinel.office1.bg [217.75.135.254]) by hub.freebsd.org (Postfix) with SMTP id 69FD737B405 for ; Mon, 10 Sep 2001 09:56:34 -0700 (PDT) Received: (qmail 4981 invoked by uid 1000); 10 Sep 2001 16:51:52 -0000 Date: Mon, 10 Sep 2001 19:51:52 +0300 From: Peter Pentchev To: Ulf Zimmermann Cc: Adrian Filipi-Martin , hackers@FreeBSD.ORG Subject: Re: Question about what programs to use in /etc/rc* Message-ID: <20010910195152.H1983@ringworld.oblivion.bg> Mail-Followup-To: Ulf Zimmermann , Adrian Filipi-Martin , hackers@FreeBSD.ORG References: <20010910110537.A2053@ringworld.oblivion.bg> <20010910102943.N36056-100000@lorax.ubergeeks.com> <20010910181954.G1983@ringworld.oblivion.bg> <20010910093524.D1500@seven.alameda.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010910093524.D1500@seven.alameda.net>; from ulf@Alameda.net on Mon, Sep 10, 2001 at 09:35:24AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Sep 10, 2001 at 09:35:24AM -0700, Ulf Zimmermann wrote: > On Mon, Sep 10, 2001 at 06:19:54PM +0300, Peter Pentchev wrote: > > Come to think of it, it might be as easy as: [**UNTESTED**] > > > > case ${ifconfig_args}; in > > [Dd][Hh][Cc][Pp]*) > > set $ifconfig_args > > shift > > ifconfig_add_args="$*" > > ...... > > > > ..provided there is a requirement that the ifconfig_args should *start* > > with 'dhcp' (which would be easy enough to meet - right now, the args > > have to *be* 'dhcp', so any additional arguments would be stapled on at > > the end). > > This sounds as the best solution. This would allow to set an interface > to be DHCP (variable dhcp_interfaces get set) and take the rest of the > arguments (like media/mediaopt) and apply them to the interface before > the dhclient gets started. If you decide to do it this way, make sure you do not make the same mistake I did - "set $ifconfig_args" is *very* much unsafe; better try "set -- $ifconfig_args", as in Adrian's message to which I repled :) G'luck, Peter -- I am not the subject of this sentence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message