On Friday 25 March 2011 06:39:38 Rémi Vanicat wrote:
> Hello,
> 
> The bug is still there and the provided patch will failed when
> HIBERNATE_MODE is not set.

Oops, I've overlooked that. The patch can be simplified further like this.

-- 
Vadim Solomin
--- /usr/lib/pm-utils/module.d/uswsusp	2011-02-06 16:22:58.000000000 +0300
+++ /usr/lib/pm-utils/module.d/uswsusp	2011-03-25 16:56:09.409295488 +0300
@@ -87,7 +87,11 @@
 	HIBERNATE_MODULE="uswsusp"
 	do_hibernate()
 	{
-		s2disk
+		if [ -n "$HIBERNATE_MODE" ]; then
+			s2disk -P "shutdown method=$HIBERNATE_MODE"
+		else
+			s2disk
+		fi
 	}
 fi
 

Reply via email to