Rather basic, does what I want without any extras.
Sleepwatcher can be installed via MacPorts, BTW:
sudo port install sleepwatcher
Wake-up script (
- Mounts the volumes on my external USB drive
- Starts Rivet.app
Sleep script (
- Unmounts the volumes on my external USB drive
- Stops Rivet.app
sudo launchctl load de.bernhard-baehr.sleepwatcher.plist
sudo launchctl unload de.bernhard-baehr.sleepwatcher.plist
The disk mount/unmount part of the scripts was looted from a MacOSXHints tip.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar 14 rue de Plaisance, 75014 Paris, France Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO.