#!/bin/sh # Script for suspend to disk # Note that this does not *have* to be installed in /etc/acpi/actions, # *especially* if you're going to trigger it with keypresses or some # such not requiring acpid sync # Just in case... if [ -x $(readlink $(which pm-hibernate)) ]; then # Use pm-utils pm-hibernate else PM_UTILS=NO echo -n disk > /sys/power/state fi if [ "$PM_UTILS" = "NO" ]; then # Put stuff you want to happen on wakeup here # UNLESS you're using pm-utils true fi