#!/bin/bash # this is an example of a suspend2 resume in the initrd cat <<-EOF mount -t sysfs sysfs /sys if [ -f /sys/power/suspend2/do_resume ] then echo > /sys/power/suspend2/do_resume fi EOF .