summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-02-06 12:06:17 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-02-07 13:46:14 -0600
commit5ca9d9514c09b2d83808ffa4e2ca0b8c64d1fe4c (patch)
tree2c16bc5cfcd071915905a74fafd47d92a1170bfc /src
parenta92675f0a02396494b7e5d58fa7ea841ccbe0cc5 (diff)
Make pm-is-supported translate $ACTION correctly.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/pm-is-supported.in2
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)