Run script in OS X 10.6 on network connection. (like /etc/network/if-up.d/)
I set up ssh tunnels so that I can access various computers at work through our gateway. The problem is, I don't like having to always set these up each time I turn on my computer or connect/disconnect to the internet so I'm hoping that there is a way that I can automatically run a shell script to set up the tunnels whenever I connect to the internet. I have something similar setup on my workstation in the office which is running Ubuntu and it uses the /etc/network/if-up.d and if-down.d. Is there an equivalent on the Mac?