summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2008-04-07 10:47:28 +0200
committerMichael Biebl <mbiebl@gmail.com>2008-04-07 10:47:28 +0200
commit4b527b7b88e146e9633a11337e3055d282b5c281 (patch)
tree89cf4abff1e1159bc25342adab5d55c1ee0e715c /pm
parent782e3549d5cafb2a35e83faf88695a742a5fe64b (diff)
/dev/pmu better be a character device
Diffstat (limited to 'pm')
-rwxr-xr-xpm/module.d/kernel2
-rwxr-xr-xpm/module.d/tuxonice2
2 files changed, 2 insertions, 2 deletions
diff --git a/pm/module.d/kernel b/pm/module.d/kernel
index 7a49355..ee2f75f 100755
--- a/pm/module.d/kernel
+++ b/pm/module.d/kernel
@@ -8,7 +8,7 @@ check_suspend()
do_suspend()
{
- if [ -e /dev/pmu ]; then
+ if [ -c /dev/pmu ]; then
pm-pmu --suspend
else
echo -n "mem" > /sys/power/state
diff --git a/pm/module.d/tuxonice b/pm/module.d/tuxonice
index 3478e42..e0c95aa 100755
--- a/pm/module.d/tuxonice
+++ b/pm/module.d/tuxonice
@@ -19,7 +19,7 @@ check_suspend()
do_suspend()
{
- if [ -e /dev/pmu ]; then
+ if [ -c /dev/pmu ]; then
pm-pmu --suspend
else
echo -n "mem" > /sys/power/state