diff options
author | Till Maas <opensource@till.name> | 2008-04-14 22:29:53 +0200 |
---|---|---|
committer | Till Maas <opensource@till.name> | 2008-04-14 22:29:53 +0200 |
commit | 1fd4bb49ff73fff69fa6e4e94baeb9699fa2f00e (patch) | |
tree | 800be0e09c08608fe430b849c53783b0d9aafd3e /pm/module.d | |
parent | e9f88b34d75052bab78fe9747f5c90b9f0f4a02c (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/module.d')
-rwxr-xr-x | pm/module.d/kernel | 2 |
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 } |