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
|
mkdir -p /sys
|
||||||
mount -t sysfs none /sys
|
mount -t sysfs none /sys
|
||||||
|
|
||||||
|
|
||||||
# Process the kernel command line.
|
# Process the kernel command line.
|
||||||
stage2Init=@stage2Init@
|
stage2Init=@stage2Init@
|
||||||
for o in $(cat /proc/cmdline); do
|
for o in $(cat /proc/cmdline); do
|
||||||
@ -64,6 +63,10 @@ for i in @modules@; do
|
|||||||
modprobe $i
|
modprobe $i
|
||||||
done
|
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.
|
# Create device nodes in /dev.
|
||||||
mknod -m 0666 /dev/null c 1 3
|
mknod -m 0666 /dev/null c 1 3
|
||||||
|
@ -114,6 +114,7 @@ export MODULE_DIR=@kernel@/lib/modules/
|
|||||||
# Run any user-specified commands.
|
# Run any user-specified commands.
|
||||||
@shell@ @bootLocal@
|
@shell@ @bootLocal@
|
||||||
|
|
||||||
|
mkswap $(cat /sys/power/tuxonice/resume) || echo 'Failed to clear saved image.'
|
||||||
|
|
||||||
# Start Upstart's init. We start it through the
|
# Start Upstart's init. We start it through the
|
||||||
# /var/run/current-system symlink indirection so that we can upgrade
|
# /var/run/current-system symlink indirection so that we can upgrade
|
||||||
|
Loading…
x
Reference in New Issue
Block a user