Added TuxOnIce support to initscripts
svn path=/nixos/trunk/; revision=9960
This commit is contained in:
parent
f81bebe2d7
commit
ba09f592c8
|
@ -32,7 +32,6 @@ mount -t proc none /proc
|
|||
mkdir -p /sys
|
||||
mount -t sysfs none /sys
|
||||
|
||||
|
||||
# Process the kernel command line.
|
||||
stage2Init=@stage2Init@
|
||||
for o in $(cat /proc/cmdline); do
|
||||
|
@ -64,6 +63,10 @@ for i in @modules@; do
|
|||
modprobe $i
|
||||
done
|
||||
|
||||
# Try to resume - all modules are loaded now
|
||||
echo 0 > /sys/power/tuxonice/user_interface/enabled
|
||||
echo 1 > /sys/power/tuxonice/do_resume || echo Failed to resume..;
|
||||
|
||||
|
||||
# Create device nodes in /dev.
|
||||
mknod -m 0666 /dev/null c 1 3
|
||||
|
|
|
@ -114,6 +114,7 @@ export MODULE_DIR=@kernel@/lib/modules/
|
|||
# Run any user-specified commands.
|
||||
@shell@ @bootLocal@
|
||||
|
||||
mkswap $(cat /sys/power/tuxonice/resume) || echo 'Failed to clear saved image.'
|
||||
|
||||
# Start Upstart's init. We start it through the
|
||||
# /var/run/current-system symlink indirection so that we can upgrade
|
||||
|
|
Loading…
Reference in New Issue