On Thu, Feb 17, 2005 at 12:07:46PM +0100, Guus Sliepen 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.

regards
Hadmut


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to