3
0
Fork 0
forked from mirrors/nixpkgs

stage-1: fix hibernation for device node symlinks

closes #4995
This commit is contained in:
Nikolay Amiantov 2014-11-15 21:43:11 +03:00 committed by Evgeny Egorochkin
parent f151f4c816
commit a2eb7ca23c

View file

@ -187,7 +187,7 @@ if test -e /sys/power/resume -a -e /sys/power/disk; then
done
fi
if test -n "$resumeDev"; then
echo "$resumeDev" > /sys/power/resume 2> /dev/null || echo "failed to resume..."
readlink -f "$resumeDev" > /sys/power/resume 2> /dev/null || echo "failed to resume..."
fi
fi