[Pm-utils] [PATCH 4/7] Added a check for /dev/snapshot when using uswsusp.

Victor Lowther victor.lowther at gmail.com
Tue Feb 12 17:38:06 PST 2008


---
 pm/module.d/uswsusp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pm/module.d/uswsusp b/pm/module.d/uswsusp
index f390b43..525aae9 100644
--- a/pm/module.d/uswsusp
+++ b/pm/module.d/uswsusp
@@ -10,6 +10,7 @@ do_suspend()
 check_hibernate() {
 	[ -f /sys/power/disk ] && \
 	grep -q disk /sys/power/state && \
+	[ -c /dev/snapshot ] &&
 	command_exists s2disk	
 }
 
@@ -26,5 +27,7 @@ check_suspend_hybrid() {
 
 do_suspend_hybrid()
 {
+	# a brief perusal of the source indicates that -f bypasses
+	# quirks application and the whitelist.
         s2both -f
 }
-- 
1.5.3.8



More information about the Pm-utils mailing list