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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to