Change command used to determine real filename for REAL_RESUME for Gentoo bug #269603

cleanup-cruft
Andrew Gaffney 16 years ago
parent 0e69c5653a
commit a9bd822a9f

@ -2,6 +2,10 @@
# Copyright 1999-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS) # Copyright 1999-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS)
# Distributed under the GPL v2 # Distributed under the GPL v2
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
19 Jul 2009; Andrew Gaffney <agaffney@gentoo.org> arch/alpha/modules_load, 19 Jul 2009; Andrew Gaffney <agaffney@gentoo.org> arch/alpha/modules_load,
arch/arm/modules_load, arch/ia64/modules_load, arch/mips/modules_load, arch/arm/modules_load, arch/ia64/modules_load, arch/mips/modules_load,
arch/parisc/modules_load, arch/parisc64/modules_load, arch/parisc/modules_load, arch/parisc64/modules_load,

@ -858,7 +858,7 @@ rundebugshell() {
swsusp_resume() { swsusp_resume() {
# determine swap resume partition # determine swap resume partition
local device=$(ls -Ll "${REAL_RESUME}" | sed 's/\ */ /g' | cut -d \ -f 6-7 | sed 's/,\ */:/') 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 [ -f /sys/power/resume ] && echo "${device}" > /sys/power/resume
return 0 return 0
} }

Loading…
Cancel
Save