So, could anyone aid me fixing my laptop so that it seeks wireless LANs and connects to them when I turn on the "Wireless switch" on my Acer TM4202WLMi laptop?
I got it to connect to my wireless router with WPA encryption already. Now I want to automate this process.
If I understood correctly I can add etries to wpa_supplicant.conf so it will search networks presented in there starting from the one with highest priority? So I just add few specific networks and one general in there and it would be ready for that part.
So all I need is daemon which catches the signal from the button and issues the following scripts when switch is ON:
ifconfig eth1 up
wpa_supplicant -ieth1 -c/etc/wpa_supplicant -Dwext -B
and then when it's OFF.
ifconfig eth1 down
Main concern is how can I find out what signal the switch gives? And is the above codes correct or should there be any more?