[Pm-utils] [PATCH 4/7] (pm-utils 1.2.4) Echo the quirks we got from HAL in 00auto-quirk.

Victor Lowther victor.lowther at gmail.com
Thu Jan 29 05:52:01 PST 2009


This will make pm-utils slightly easier to debug.
Thanks, Michael Biebl for the idea.
---
 pm/sleep.d/00auto-quirk |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/pm/sleep.d/00auto-quirk b/pm/sleep.d/00auto-quirk
index 5e26ae6..04bf954 100755
--- a/pm/sleep.d/00auto-quirk
+++ b/pm/sleep.d/00auto-quirk
@@ -4,10 +4,12 @@
 
 do_add_quirks()
 {
-	add_parameters $(lshal | \
-	awk -F '[. ]' \
+	local quirks="$(lshal | \
+		awk -F '[. ]' \
 		'/  power_management.quirk.[0-9a-z_]+ = true/ \
-			{gsub(/_/, "-", $5); printf("--quirk-%s ", $5)}')
+			{gsub(/_/, "-", $5); printf("--quirk-%s ", $5)}')"
+	echo "Adding quirks from HAL: $quirks"
+	add_parameters $quirks
 }
 
 do_save_quirks()
-- 
1.6.0.6



More information about the Pm-utils mailing list