Date: Mon, 10 Sep 2001 19:51:52 +0300 From: Peter Pentchev <roam@ringlet.net> To: Ulf Zimmermann <ulf@Alameda.net> Cc: Adrian Filipi-Martin <adrian@ubergeeks.com>, hackers@FreeBSD.ORG Subject: Re: Question about what programs to use in /etc/rc* Message-ID: <20010910195152.H1983@ringworld.oblivion.bg> In-Reply-To: <20010910093524.D1500@seven.alameda.net>; from ulf@Alameda.net on Mon, Sep 10, 2001 at 09:35:24AM -0700 References: <20010910110537.A2053@ringworld.oblivion.bg> <20010910102943.N36056-100000@lorax.ubergeeks.com> <20010910181954.G1983@ringworld.oblivion.bg> <20010910093524.D1500@seven.alameda.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010910195152.H1983>