diff options
author | Michael Biebl <mbiebl@gmail.com> | 2008-03-28 15:44:43 +0100 |
---|---|---|
committer | Michael Biebl <mbiebl@gmail.com> | 2008-03-28 15:44:43 +0100 |
commit | df039c9dc6917d7283d50c78a17405d38af77e96 (patch) | |
tree | 0e0002b1c6e3690f1af57bb0e615d5c496dc3dab /pm | |
parent | bf5f55f5b5ec375ac1b0b565011b8bf9d0ccf178 (diff) |
Improve PMU check
Test if /dev/pmu is a character device.
Diffstat (limited to 'pm')
-rwxr-xr-x | pm/module.d/kernel | 2 | ||||
-rwxr-xr-x | pm/module.d/tuxonice | 2 | ||||
-rwxr-xr-x | pm/module.d/uswsusp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/pm/module.d/kernel b/pm/module.d/kernel index 3683a28..7a49355 100755 --- a/pm/module.d/kernel +++ b/pm/module.d/kernel @@ -2,7 +2,7 @@ check_suspend() { - [ -e /dev/pmu ] && return 0 + [ -c /dev/pmu ] && return 0 grep -q mem /sys/power/state && return 0 } diff --git a/pm/module.d/tuxonice b/pm/module.d/tuxonice index cc32f60..3478e42 100755 --- a/pm/module.d/tuxonice +++ b/pm/module.d/tuxonice @@ -13,7 +13,7 @@ done check_suspend() { - [ -e /dev/pmu ] && return 0 + [ -c /dev/pmu ] && return 0 grep -q mem /sys/power/state && return 0 } diff --git a/pm/module.d/uswsusp b/pm/module.d/uswsusp index 371bb04..48cea40 100755 --- a/pm/module.d/uswsusp +++ b/pm/module.d/uswsusp @@ -34,7 +34,7 @@ get_quirks() check_suspend() { - [ -e /dev/pmu ] && return 0 + [ -c /dev/pmu ] && return 0 grep -q mem /sys/power/state && return 0 } |