View Single Post
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#4
If you want command line solution, there is dbus-scripts, which allows running a script on any dbus event, which includes connection or disconnection (either to a specific network, or to any network).
This package is available from chinook extras-devel, but works on diablo (and OS2007/OS2006) as well.

I actually use it to do exactly what you describe.
 

The Following User Says Thank You to Matan For This Useful Post: