View previous topic :: View next topic |
Author |
Message |
dcdead n00b
Joined: 12 Nov 2004 Posts: 21
|
Posted: Sun Feb 11, 2007 12:43 am Post subject: Some way to execute script after wpa_supplicant connected? |
|
|
I'm using wpa_supplicant to connect to my wireless lan at home and at the university. As i need to start different vpn clients on each location, i wanted them to be started automatically when wpa_supplicant connects to the netword. Is there any way to do this? Obiously the wpa_supplicant.conf doesn't have such an option. I have also tried the postassociate function described in /etc/conf.d/wireless.example, but it simply doesn't get called. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
dcdead n00b
Joined: 12 Nov 2004 Posts: 21
|
Posted: Sun Feb 11, 2007 9:04 pm Post subject: |
|
|
Thanks for the help. I've written a small python script, which i call from wpa_cli.sh in case of a connect. Works fine |
|
Back to top |
|
|
|