##linuxrc## #!/bin/sh # # $Id: linuxrc,v 1.11 2004/04/26 12:04:46 herbert Exp $ export PATH=/sbin:/bin mount -nt proc proc proc mount -n -t sysfs sys /sys root=$(cat proc/sys/kernel/real-root-dev) echo 256 > proc/sys/kernel/real-root-dev echo 'file:/dev/hda1:0x38000' > /sys/power/suspend2/do_resume mount -nt tmpfs tmpfs bin || mount -nt ramfs ramfs bin echo $root > bin/root