In Linux I use two scripts. I store the passwords in two plain files: wep: #! /bin/sh key="`grep $1 /home/pmarin/wep | cut -d' ' -f2`" sudo ifconfig wlan0 up sudo iwconfig wlan0 essid $1 sudo iwconfig wlan0 key $key sudo dhclient wlan0
wpa: #! /bin/sh sudo ifconfig wlan0 up sudo iwconfig wlan0 essid $1 sudo wpa_supplicant -iwlan0 -c/home/pmarin/wpa -B sudo dhclient wlan0 On Sun, May 30, 2010 at 1:01 AM, Ilya Ilembitov <ilembi...@ya.ru> wrote: > Hi, all.I wanted to ask for an advice. > > Being a laptop user, I have to swtich between wireless networks quite > frequently, and often I have to connect to the new networks. So, I am in need > of a tool that would allow me to automatize the whole routine: provide me > with a list of networks, allow me to select the one to connect, find out the > type of encryption and actually connect to it (prompting me for the > encryption key, if needed) - since I don't think that I'll be able to > memorize all the wpa_supplicant options to use it fluently (i.e. without > having to read the manpage each time I want to connect to a new network). > > The current options that I am aware of: > > 1. Networkmanager - ties a lot of dependencies and is not quite stable > > 2. wicd - has a ncurses flavour, I'll probably give it a try. > > 3. connman (that thing that is used in Moblin/Meego) - quite young and I > haven't heard much of it, and whether it could be used outside of its > original environment. Although I believe I have read somewhere that E17 > people were trying to make a EFL GUi to it, so probably it's rather flexible. > > Any other options? I was hoping that someone has already come up with a > custom solution that would integrate into dwm/dmenu environment nicely. > > > -- > wbr, Ilembitov > >