#!/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 # First, let's make sure we're not shutting down or rebooting if [ -e /etc/powerdown ]; then logger "Cannot suspend - /etc/powerdown exists." exit 1 fi # Let's do the hibernate logger "Going for suspend now..." sync # Just in case... pm-suspend