* Get rid of some spurious error messages.
svn path=/nixos/trunk/; revision=9968
This commit is contained in:
parent
b3fa4f1e4e
commit
d4168a89b1
|
@ -63,9 +63,12 @@ for i in @modules@; do
|
||||||
modprobe $i
|
modprobe $i
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# Try to resume - all modules are loaded now
|
# Try to resume - all modules are loaded now
|
||||||
echo 0 > /sys/power/tuxonice/user_interface/enabled
|
if test -n "$(cat /sys/power/tuxonice/resume)"; then
|
||||||
echo 1 > /sys/power/tuxonice/do_resume || echo Failed to resume..;
|
echo 0 > /sys/power/tuxonice/user_interface/enabled
|
||||||
|
echo 1 > /sys/power/tuxonice/do_resume || echo "Failed to resume..."
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Create device nodes in /dev.
|
# Create device nodes in /dev.
|
||||||
|
|
|
@ -114,7 +114,10 @@ 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.'
|
resumeDevice="$(cat /sys/power/tuxonice/resume)"
|
||||||
|
if test -n "$resumeDevice"; then
|
||||||
|
mkswap "$resumeDevice" || echo 'Failed to clear saved image.'
|
||||||
|
fi
|
||||||
|
|
||||||
# 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
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#! @bash@/bin/sh -e
|
#! @bash@/bin/sh -e
|
||||||
|
|
||||||
|
shopt -s nullglob
|
||||||
|
|
||||||
export PATH=/empty
|
export PATH=/empty
|
||||||
for i in @path@; do PATH=$PATH:$i/bin; done
|
for i in @path@; do PATH=$PATH:$i/bin; done
|
||||||
|
|
||||||
|
@ -88,9 +90,7 @@ EOF
|
||||||
|
|
||||||
# Add all generations of the system profile to the menu, in reverse
|
# Add all generations of the system profile to the menu, in reverse
|
||||||
# (most recent to least recent) order.
|
# (most recent to least recent) order.
|
||||||
for link in $(
|
for link in $((ls -d $default/fine-tune/* ) | sort -n); do
|
||||||
(ls -d $default/fine-tune/* ) \
|
|
||||||
| sort -n); do
|
|
||||||
date=$(stat --printf="%y\n" $link | sed 's/\..*//')
|
date=$(stat --printf="%y\n" $link | sed 's/\..*//')
|
||||||
addEntry "NixOS - variation" $link ""
|
addEntry "NixOS - variation" $link ""
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue