diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-02-11 18:26:54 -0600 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-02-11 18:26:54 -0600 |
commit | 982ccdf2b02742bfdcd8e8bdd7e1a3ebe8856ec8 (patch) | |
tree | 70160870480293b0f7e92ecc7f7936bd29edad8b /pm | |
parent | e55fd77ebd34da61718bda8e698bbb9c4c8add14 (diff) |
Added a check for /dev/snapshot when using uswsusp.
Diffstat (limited to 'pm')
-rw-r--r-- | 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 } |