Did you ever wish you could start certain scripts only when you are bringing the network up and then stop them when bring the network down?
For the longest time, I was using wicd to manage network connections. At some point and time I decided to take a look at NetworkManager.
Using network manager, you can use the dispatcher to run scripts based on network connection, runlevel, etc.
This is how I got it working in gentoo linux and a few example scripts.