summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2008-04-14 22:29:53 +0200
committerTill Maas <opensource@till.name>2008-04-14 22:29:53 +0200
commit1fd4bb49ff73fff69fa6e4e94baeb9699fa2f00e (patch)
tree800be0e09c08608fe430b849c53783b0d9aafd3e /pm
parente9f88b34d75052bab78fe9747f5c90b9f0f4a02c (diff)
- add -w to grep in hibernate check to avoid matching "testproc" with "test"
"shutdown" with "shut" Reported: Red Hat Bugzilla: #427018
Diffstat (limited to 'pm')
-rwxr-xr-xpm/module.d/kernel2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/module.d/kernel b/pm/module.d/kernel
index cebcd98..3aedad5 100755
--- a/pm/module.d/kernel
+++ b/pm/module.d/kernel
@@ -23,7 +23,7 @@ check_hibernate()
do_hibernate()
{
[ -n "${HIBERNATE_MODE}" ] && \
- grep -q "${HIBERNATE_MODE}" /sys/power/disk && \
+ grep -qw "${HIBERNATE_MODE}" /sys/power/disk && \
echo -n "${HIBERNATE_MODE}" > /sys/power/disk
echo -n "disk" > /sys/power/state
}