From: Andrew Gaffney Date: Sun, 19 Jul 2009 19:41:45 +0000 (-0500) Subject: Change command used to determine real filename for REAL_RESUME for Gentoo bug #269603 X-Git-Tag: v3.4.10.906~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9bd822a9fcb7a9695fd489d9e9dc653e5ad7ca4;p=genkernel.git Change command used to determine real filename for REAL_RESUME for Gentoo bug #269603 --- diff --git a/ChangeLog b/ChangeLog index eddbd69..6ad8947 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS) # Distributed under the GPL v2 + 19 Jul 2009; Andrew Gaffney defaults/initrd.scripts: + Change command used to determine real filename for REAL_RESUME for Gentoo + bug #269603 + 19 Jul 2009; Andrew Gaffney arch/alpha/modules_load, arch/arm/modules_load, arch/ia64/modules_load, arch/mips/modules_load, arch/parisc/modules_load, arch/parisc64/modules_load, diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index b63568d..66130ae 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -858,7 +858,7 @@ rundebugshell() { swsusp_resume() { # 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 return 0 }