View previous topic :: View next topic |
Author |
Message |
m00dawg Tux's lil' helper
Joined: 27 Jan 2003 Posts: 145 Location: Texas
|
Posted: Wed Aug 18, 2004 3:11 am Post subject: Wireless AP selector? |
|
|
Every few months I try to look for one of these and never quite figure it out I know there is another post about this, but I can't think of what to search for My problem is I my laptop to be able to figure out which wireless profile to use based upon the ESSID. So when I'm at UT, and I pop in my wireless card and it finds 'utexas', it knows not to do anything else. But when I go home I want to use my encyrpted WAP key for my own ESSID (once more, there a multiple ESSID's around my apartment, so it needs to compare which one I want).
Basically I want what Windows has. Ther I said it. _________________ www.moocowproductions.org |
|
Back to top |
|
|
kbielefe n00b
Joined: 08 Aug 2004 Posts: 35 Location: Gilbert, AZ
|
Posted: Wed Aug 18, 2004 4:09 am Post subject: |
|
|
I don't know if different profiles are officially supported in any software. That would be a nice feature. It should be pretty easy to fix with a small edit to an init script, however. My laptop hard drive crashed, so I have been using Knoppix on it and can't test this out, but probably somewhere in /etc/init.d there is a script that calls iwconfig with some parameters. To make the parameters dependent on which access points are nearby, replace that line of code with something like this:
Code: | if [[ `iwlist scan 2>&1 | grep 'ESSID_univ'` =~ "ESSID_univ" ]]
then
iwconfig eth0 essid ESSID_univ channel ...
else
iwconfig eth0 essid ESSID_home channel ...
fi |
Make sure and notice the difference between the backticks (left of the 1 key) and apostrophes. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
|