Ok I've been looking at KNetworkManager, even tried to compile it and gave up on it and decided that I want to to this one the slackware way.
The thing is, I'm accessing 3 different networks with my laptop. Two are Wireless and one is wired.
I connect to the home wireless like this (this one is in rc.local):
Code:
/sbin/modprobe rt2500
ifconfig eht0 down
ifconfig wlan0 192.168.2.20 up
iwpriv wlan0 set AuthMode=WPAPSK
iwpriv wlan0 set EncrypType=TKIP
iwpriv wlan0 set WPAPSK=mypsk
route add default gw 192.168.2.1 wlan0
And then when I go to school I use RutilT to switch between ESSIDs. Not exactly the way I want it. And on another network I connect to a router via eth0.
The other wireless does not use any encryption and no passwords or anything. Don't ask me why, it's not my network and I use it only for highly needed information from the internet.
How would I do this and where do I begin?
Edit: Damn I'm stupid, can't even ask the right way :P
I would like that my laptop would use either one of these networks that are currently available.
I.e. when I'm at home it uses the specified info to connect to the router, and when I'm and school it would connect to the open wireless router at boot. But when I'm on a cable it would use the eth0 interface to connect.