sleepwatcher is a command line tool that can execute a command when the Mac goes to sleep or wakes up. After the installation is complete, type "man sleepwatcher" in a Terminal window to get more information.

This package installs the following files:

/usr/local/sbin/sleepwatcher - the sleepwatcher command
/usr/local/share/man/man8/sleepwatcher.8 - manual page for sleepwatcher