I had a requirement that I needed to be able to connect to WEP and WPA networks (one at work, and one at home). The problem is that WEP isn’t really well supported by wpasupplicant so I needed to find another solution. I grabbed the script ssidselect from somewhere I don’t remember. If it’s you, let me know and I’ll give you credit.
Anyways, what this does is on connect it will automatically look for wireless networks and on the first one it finds in the list that matches one’s you’ve got set, it will connect to that network. In addition, I use ssh to tunnel my mail services so that is started as well.
You’ll need the /etc/network/interfaces, /etc/network/ssidselect.sh and /etc/network/hldvpn.sh files. All of which need to be customized for your setup.
You can get them on my website:
http://dan.hld.ca/acer/interfaces
http://dan.hld.ca/acer/ssidselect.sh
http://dan.hld.ca/acer/hldvpn.sh
If you’re using WPA and WPA2 then you’ll need to have wpasupplicant and xsupplicant working and setup properly. Just make sure that they don’t start automatically on boot (take them out of /etc/rc*.d/)




