It work with the following configuration :

auto wlan0
iface wlan0 inet dhcp
pre-up ! ifconfig eth0 | grep 'inet addr'
pre-up ifconfig wlan0 up;iwlist wlan0 scanning;sleep 2;
pre-down ifconfig -v wlan0 down
 wireless-essid Intrawep
 wireless-key 9638520741


somehow it appears that to be associated with any access points i need to :
1. Know the access point mac adress trough a call to iwlist scanning, this call need the interface to be up first. 2. I need to wait two seconds to allow...ifup? to "receive" this information so it can be used.


I guess it is not a bug in wireless tools so , but it make wireless-tools pretty unusable in /etc/network/interfaces.

I add an hint for anybody with the same problem, if you seem to need multiple call (twice in my case) to ifup to be able to associate with any access points, it only meant that you need to WAIT, nothing else, before calling ifup.


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

Reply via email to