Another workaround for those who don't want to use the network manager:

I set the method of my wlan interface to manual in
/etc/network/interfaces:

    iface wlan1 inet manual 
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
        post-up /etc/network/dhclient-wrapper &
        post-down [ -f /var/run/dhclient.wlan1.pid ] && kill `cat 
/var/run/dhclient.wlan1.pid`

To get an IP adress from an dhcp server I wrote the attached script 
dhclient-wrapper. It calls the dhclient3 with parameter -1. If the dhclient 
cannot obtain an address it exits with code 2. In this case I deactivate the 
wlan interface in the script. 
However the & makes the script running in the background preventing Ubuntu from 
hanging while it boots up.

The post-down statement is for killing the dhclient programm if the
interface is deactivated.


** Attachment added: "Script for calling dhclient in the background and 
deactivating the interface if no dhcp server was found"
   http://launchpadlibrarian.net/20880392/dhclient-wrapper

-- 
Ubuntu 8.10 booting hangs for a while on "configuring network interfaces" on 
iwl3945 and iwl4965
https://bugs.launchpad.net/bugs/293023
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to