back out previous commit

cleanup-cruft
Andrew Gaffney 16 years ago
parent f3ae1fe692
commit 61bf391991

@ -2,9 +2,6 @@
# Copyright 1999-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS)
# Distributed under the GPL v2
19 Jul 2009; Andrew Gaffney <agaffney@gentoo.org> defaults/initrd.scripts:
Alternative solution for Gentoo bug #269603
19 Jul 2009; Andrew Gaffney <agaffney@gentoo.org> defaults/initrd.scripts:
Change command used to determine real filename for REAL_RESUME for Gentoo
bug #269603

@ -858,7 +858,7 @@ rundebugshell() {
swsusp_resume() {
# determine swap resume partition
local device=$(get_real_filename "${REAL_RESUME}")
local device=$(ls -lL "${REAL_RESUME}" | sed 's/\ */ /g' | cut -d \ -f 5-6 | sed 's/,\ */:/')
[ -f /sys/power/resume ] && echo "${device}" > /sys/power/resume
return 0
}
@ -987,13 +987,3 @@ setup_unionfs() {
USE_UNIONFS_NORMAL=0
fi
}
get_real_filename() {
local file=$1
if [ -L "${file}" ]; then
readlink ${file}
elif [ -f "${file}" ]; then
echo "${file}"
fi
}

Loading…
Cancel
Save