From a9bd822a9fcb7a9695fd489d9e9dc653e5ad7ca4 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sun, 19 Jul 2009 14:41:45 -0500 Subject: [PATCH] Change command used to determine real filename for REAL_RESUME for Gentoo bug #269603 --- ChangeLog | 4 ++++ defaults/initrd.scripts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 } -- 2.26.2