summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2008-03-28 15:44:43 +0100
committerMichael Biebl <mbiebl@gmail.com>2008-03-28 15:44:43 +0100
commitdf039c9dc6917d7283d50c78a17405d38af77e96 (patch)
tree0e0002b1c6e3690f1af57bb0e615d5c496dc3dab /pm
parentbf5f55f5b5ec375ac1b0b565011b8bf9d0ccf178 (diff)
Improve PMU check
Test if /dev/pmu is a character device.
Diffstat (limited to 'pm')
-rwxr-xr-xpm/module.d/kernel2
-rwxr-xr-xpm/module.d/tuxonice2
-rwxr-xr-xpm/module.d/uswsusp2
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
}