I finally fixed a very annoying bug in the network setup. Bauhaus is connected via an USB wlan stick by Conceptronic, which has a Ralink chipset (rt2570). I made that thing work quite some time ago, although the (legacy) module from
rt2x00.serialmonkey.com required a small patch at the time.
What I couldn't fix though was a very annoying behaviour of the driver: It wouldn't connect on the first try. Only if I re-started /etc/init.d/network, the server would connect to my AP. I had figured out that the driver required the interface to be upped
before you would be able to set ESSID etc., but I couldn't get it to work with Debians ifupdown scheme. Some days ago, somebody in de.comp.os.unix.linux.misc posted his configuration and he had a pre-up ifconfig rausb0
two times, so that makes three times the interface gets upped. This actually did the trick. I now have the following in my /etc/network/interfaces:
# The wlan interface
auto rausb0
iface rausb0 inet dhcp
pre-up ifconfig rausb0 up
pre-up iwconfig rausb0 essid XXXXX
pre-up iwconfig rausb0 channel 10
pre-up sleep 3
pre-up ifconfig rausb0 up
pre-up iwpriv rausb0 enc 3
pre-up iwpriv rausb0 auth 3
pre-up iwpriv rausb0 wpapsk XXXXX
pre-up sleep 3
post-up /etc/network/if-post-up.d/bauhaus.fw
And this finally allows to connect the damned thing at boot time, which is nice for two reasons: It speeds up my boot process (before dhclient would fail after an awful lot of time) and my clock will be much more precise. Now the next thing would be to try the new implementation of the driver, aka rt2x00, and go for WPA2 (which the current legacy driver is not capable of). I'll leave that for another day, though.