Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Some way to execute script after wpa_supplicant connected?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dcdead
n00b
n00b


Joined: 12 Nov 2004
Posts: 21

PostPosted: Sun Feb 11, 2007 12:43 am    Post subject: Some way to execute script after wpa_supplicant connected? Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sun Feb 11, 2007 11:12 am    Post subject: Reply with quote

postassociate won't work with wpa_supplicant.

You could put something in /etc/wpa_supplicant/wpa_cli.sh though.
OR you could do what I do and just have all vpn's needed running anyway - openvpn allows this and works quite well.

If you're not comfortable with this, please open a bug (bugs.gentoo.org)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
dcdead
n00b
n00b


Joined: 12 Nov 2004
Posts: 21

PostPosted: Sun Feb 11, 2007 9:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum