The SleepWatcher StartupItem is a sample set of scripts for the sleepwatcher daemon. With the package installed, any Mac user can provide scripts .sleep and .wakup in his/her home directory that are executed when the Mac goes to sleep mode respectively wakes up.

This package installs the following files:

/Library/StartupItems/SleepWatcher - startup script for the sleepwatcher daemon
/etc/rc.sleep - system wide script executed by the sleepwatcher daemon when the Mac goes to sleep mode
/etc/rc.wakeup - system wide script executed by the sleepwatcher daemon when the Mac wakes up from sleep mode