Something strange is happening... I've installed a Wi-Fi card into my Ubuntu Server 11.04 machine.
To configure it I do the following:
sudo vi /etc/network/interfaces
iface wlan0 inet dhcp wpa-driver wext wpa-ssid "Sweet Home" wpa-ap-scan 1 wpa-proto WPA wpa-pairwise TKIP wpa-group TKIP wpa-key-mgmt WPA-PSK wpa-psk <A KEY> auto wlan0
$ sudo /etc/init.d/networking restart * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces * Reconfiguring network interfaces... ssh stop/waiting ssh start/running, process 1522 ssh stop/waiting ssh start/running, process 1590
And my machine successfully gets an ip to my wireless adapter.
But after reboot it doesn't get any ip in wireless network. To fix it I run
/etc/init.d/networking restart again and all is fine again - it gets an ip.
I understand that I simply should add it to my startup scripts to make it work properly, but maybe there is a better way to configure it?
UPD: I've tried to add it to startup (put a link to restart script into /etc/rcS.d/S80restartwireless but no success... It restarts but i still have to restart network manually to make it work.