I found another pretty cool program for Mac OS X. Peripheral Vision displays a graphic or plays a sound when a peripheral is connected or removed from a computer. In addition to this, it will run a program or script when the peripherial is connected or removed. I am using this to run a script whenever I remove a network adapter. I am doing it to fix a problem in X11. Here is a article that discribes this fix.