Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can wpa_supplicant exec something?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mitschel
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2005
Posts: 138
Location: Germany

PostPosted: Wed Jun 18, 2008 3:23 pm    Post subject: Can wpa_supplicant exec something? Reply with quote

Hi,

Is there a simple way to execute a script, which mounts for example my networkshares, if I enter my wlan? Of course also umounts on disconnect. I'm using wpa_supplicant..

Ty
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Wed Jun 18, 2008 9:57 pm    Post subject: Reply with quote

wpa_cli can run a script when the status change from CONNECTED to DISCONNECTED and vice versa, you can really do what you want with this, check out its man page (espescially what argument are given the your script and which environment variables will be automaticly defined and accesible within your script)

Hope this helps!
_________________
The End of the Internet!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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