summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNigel Cunningham <nigel@nigel.suspend2.net>2008-01-29 21:12:27 +0000
committerRichard Hughes <richard@hughsie.com>2008-01-29 21:12:27 +0000
commit4b62a077eda4cf0055ca50225e50d7d581669d1c (patch)
treecf1c10bb0c92a91c091cccafc8ce56013d057c33 /src
parentdd55c3a612b9393b1600cfff1c647b0c4d0823ae (diff)
Here's a new patch (this time against current git) to enable
suspend-to-both support if we have suspend-to-ram and TuxOnIce.
Diffstat (limited to 'src')
-rw-r--r--src/pm-is-supported5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pm-is-supported b/src/pm-is-supported
index b951f9a..9520e0b 100644
--- a/src/pm-is-supported
+++ b/src/pm-is-supported
@@ -36,8 +36,9 @@ case "$ARG" in
grep -q disk /sys/power/state || exit 1
;;
suspend-hybrid)
- # grep -q mem /sys/power/state || exit 1
- # grep -q disk /sys/power/state || exit 1
+ grep -q mem /sys/power/state || exit 1
+ [ -d /sys/power/tuxonice ] && exit 0
+ #grep -q disk /sys/power/state || exit 1
exit 1
;;
help)