hey all. I have a laptop. Whenever I want to switch to a different wireless network (IE at home or at school) I have to go into the /etc/network/interface file and uncomment the essid I want to connect to and comment the essid I was previously using in order to autoconnect. Is there a way to configure this so I don't have to do this ritual everytime I change my location? Autodetecting isn't a problem, it is autoconnecting that is my problem. I'm using Ubuntu Breezy Badger. Any help would be appreciated.
here is my /etc/network/interface file
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
# The primary network interface
iface eth0 inet dhcp
iface wlan0 inet dhcp
pre-up /usr/sbin/wpa_supplicant -Bw -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
#wireless-essid school name