I always have to type the following 3 commands into Konsole to get my wireless card working on a static IP. Can you help me fix my interfaces file (see below) to automate this? Notice that I have to use WLAN1 not WLAN0.
sudo ifconfig wlan1 192.168.1.36
sudo route add default gw 192.168.1.1
sudo iwconfig wlan1 key 72xxxxxxxx
=======================
auto lo
iface lo inet loopback
#pre-up /wifi/wlan0up
#post-down /wifi/wlan0down
address 127.0.0.1
netmask 255.0.0.0
mapping hotplug
script grep
map wlan0
iface wlan0 inet static
address 192.168.1.41
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.1.1
wireless-essid jrb&e
wireless-key s:72FFxxxxxx
sudo ifconfig wlan1 192.168.1.36
sudo route add default gw 192.168.1.1
sudo iwconfig wlan1 key 72xxxxxxxx
=======================
auto lo
iface lo inet loopback
#pre-up /wifi/wlan0up
#post-down /wifi/wlan0down
address 127.0.0.1
netmask 255.0.0.0
mapping hotplug
script grep
map wlan0
iface wlan0 inet static
address 192.168.1.41
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.1.1
wireless-essid jrb&e
wireless-key s:72FFxxxxxx
Comment