On Thu, Feb 17, 2005 at 12:29:04PM +0100, Hadmut Danisch wrote:

> > If you want to do this kind of stuff, I suggest you add a pre-up command
> > to /etc/network/interfaces, like this:
> > 
> > iface eth0 inet dhcp
> >     pre-up iwconfig $IFACE key `cat keyfile`
> > 
> > I will not add functionality in the if-pre-up script that does not
> > already exist in iwconfig itself.
> 
> Sure this is possible. 
> But it doesn't execute the commands in the correct order. 
> Some wlan drivers don't accept the commands in arbitrary order.
> If you do it the way you describe, then the command is executed
> before or after your if-up script, and that fails with some card
> drivers.

That problem has been reported before, but that is a bug in the drivers.
The drivers should accept ioctls in any order, but some don't. Also,
there is not one order that works well with every broken driver. If the
driver you use has this problem, please convince its author to fix this!

-- 
Met vriendelijke groet / with kind regards,
    Guus Sliepen <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Reply via email to