If there is no state to save when running the ibm bluetooth hook, then
don't do anything instead of saving state that says "there was no
state to save".
diff -U 0 -rNX diffignore pm-utils.updates/pm/sleep.d/49bluetooth working/pm/sleep.d/49bluetooth
--- pm-utils.updates/pm/sleep.d/49bluetooth 2008-01-27 11:58:02.000000000 -0600
+++ working/pm/sleep.d/49bluetooth 2008-01-26 13:56:11.000000000 -0600
@@ -7,6 +7,3 @@
- if [ -f /proc/acpi/ibm/bluetooth ]; then
- savestate ibm_bluetooth $(awk '{ print $2 ; exit; }' /proc/acpi/ibm/bluetooth)
- echo disable > /proc/acpi/ibm/bluetooth
- else
- savestate ibm_bluetooth missing
- fi
+ [ -f /proc/acpi/ibm/bluetooth ] || return 1
+ savestate ibm_bluetooth "$(awk '{ print $2 ; exit; }' /proc/acpi/ibm/bluetooth)"
+ echo disable > /proc/acpi/ibm/bluetooth
_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils