summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog10
-rw-r--r--scripts/functions2
-rwxr-xr-xscripts/local-premount/suspend2
3 files changed, 10 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index 0c4b918..fea4793 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,9 +2,15 @@ initramfs-tools (0.38) unstable; urgency=low
[ dann frazier ]
- * Reference correct manpage in initramfs.conf. Closes: #336095
+ * initramfs.conf: Reference correct manpage. Closes: #336095
- -- maximilian attems <maks@sternwelten.at> Wed, 2 Nov 2005 06:58:17 +0100
+ [ maximilian attems ]
+
+ * scripts/functions, scripts/local-premount/suspend: Fix suspend to disk
+ by using decimal numbers. Thanks to Adrian Bridgett <adrian@smop.co.uk>
+ for the patch. (Closes: #336936)
+
+ -- maximilian attems <maks@sternwelten.at> Wed, 2 Nov 2005 07:10:45 +0100
initramfs-tools (0.37) unstable; urgency=low
diff --git a/scripts/functions b/scripts/functions
index 8e82896..5147009 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -228,7 +228,7 @@ load_modules()
if [ -e /sys/power/resume ]; then
if [ -e "${resume}" ]; then
major_minor=$(ls -l ${resume} | \
- awk '{printf "0x%x:0x%x", $5, $6}')
+ awk '{printf "%d:%d", $5, $6}')
echo $major_minor >/sys/power/resume
fi
fi
diff --git a/scripts/local-premount/suspend b/scripts/local-premount/suspend
index 2e0b43f..0c88ccc 100755
--- a/scripts/local-premount/suspend
+++ b/scripts/local-premount/suspend
@@ -24,6 +24,6 @@ if [ ! -e "${resume}" ]; then
fi
if [ -e /sys/power/resume ]; then
- major_minor=$(ls -l ${resume} | awk '{printf "0x%x:0x%x", $5, $6}')
+ major_minor=$(ls -l ${resume} | awk '{printf "%d:%d", $5, $6}')
echo $major_minor >/sys/power/resume
fi