#!/bin/sh cat <>$INITRDDIR/script if [ -z "\$noresume" ]; then # be careful with the 'dollar' sign echo >/proc/software_suspend/do_resume # IMPORTANT: use the line below for version 2.2-rc8 and newer echo >/proc/suspend2/do_resume umount -n devfs umount -n proc fi EOF