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

_______________________________________________
Pm-utils mailing list
Pm-utils@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to