change wlan0 info to connect to different access point
Posted on 2006-05-05
Hello! As always, thanks for helping!!!
I got an HP Pavilion ze4210 with Broadcom miniPCI wifi card (works with ndiswrapper and MS driver), running FC4 with Gnome
I use my laptop to connect to two different wifi access points. One at home, the other at work. I got FC4 to load wifi instructions automatically when i boot the machine up. This is done by providing access point connection instructions in /etc/rc.local where i typed:
iwconfig wlan0 mode Managed
iwconfig wlan0 key 987163984618346182364812634 --> not actual key, just an example
iwconfig wlan0 essid HomeNet
this works great, but if i want to get on Wifi at work, i have to go into my rc.local file and change those instructions to tell machine my work wifi info. Then reboot and i can get on my work wifi...
This is sort of crappy, i bet there's got to be a better way of doing this. Can i somehow make some sort of script to run and change these instructions, or some sort of profile for a certain connection?! Like in Window$ there's an option to specify which network one wants to connect to, you can select home or work and it will load appropriate info without having to reboot or modify anything. Can something like this be done in FC4?!