#!/bin/sh # Script for suspend to ram # 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-suspend)) ]; then # Use pm-utils pm-suspend else PM_UTILS=NO echo -n mem > /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