> Apart from that, there's a number of places where a different wifi > configuration is necessary, call them /etc/hostname.athn0.apX. > > Being at one of these places, typing "sh /etc/netstart athn0.apX" > suffices to have a working setup. >
Another way is to have a different command for each place you visit: #! /bin/ksh int="rum0" ifconfig $int down ifconfig $int nwid "id" wpa wpakey "password" sleep 2 dhclient $int Then if you go to a new place, just copy the script, changing id and password, and instantly connect.