[Pm-utils] [PATCH 2/7] Add more paranoia to check_suspend_hybrind in uswsusp.

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


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

diff --git a/pm/module.d/uswsusp b/pm/module.d/uswsusp
index d2c50c4..8c0d4a4 100644
--- a/pm/module.d/uswsusp
+++ b/pm/module.d/uswsusp
@@ -19,7 +19,9 @@ do_hibernate()
 }
 
 check_suspend_hybrid() {
-	grep -q mem /sys/power/state && command_exists s2both
+	grep -q mem /sys/power/state && \
+	command_exists s2both && \
+	check_hibernate
 }
 
 do_suspend_hybrid()
-- 
1.5.3.8



More information about the Pm-utils mailing list