[Pm-utils] [PATCH 2/4] Make pm-is-supported translate $ACTION correctly.
Victor Lowther
victor.lowther at gmail.com
Thu Feb 7 20:33:47 PST 2008
---
src/pm-is-supported.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/pm-is-supported.in b/src/pm-is-supported.in
index af2f2cf..6538a52 100755
--- a/src/pm-is-supported.in
+++ b/src/pm-is-supported.in
@@ -23,7 +23,7 @@ help_options() {
echo
}
-ARG="${1#--}"
+ARG="$(echo ${1#--}|tr - _)"
case "$ARG" in
suspend|hibernate|suspend-hybrid)
--
1.5.3.8
More information about the Pm-utils
mailing list