Hi Richard et al.
This little patch is my first modification in an attempt to add TuxOnIce
support to pm-utils. It makes pm-is-supported check whether
/sys/power/tuxonice exists when considering whether suspend-to-ram +
disk is a valid option.
Sorry for attaching rather than inlining, but I'm still figuring out how
to make Thunderbird not wrap lines in patches.
Regards,
Nigel
--- pm-is-supported.orig 2008-01-26 16:28:04.000000000 +1100
+++ pm-is-supported 2008-01-26 16:30:25.000000000 +1100
@@ -37,7 +37,7 @@
suspend-hybrid)
grep -q mem /sys/power/state || exit 1
grep -q disk /sys/power/state || exit 1
- [ -x /usr/sbin/s2both ] || exit 1
+ [ -x /usr/sbin/s2both -o -d /sys/power/tuxonice ] || exit 1
;;
help)
help_options
_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils