summaryrefslogtreecommitdiff
path: root/src/pm-action.in
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-09-17 19:29:35 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-09-17 19:29:35 -0500
commit982784806793454ea3b87babb3b399d98c8d1639 (patch)
tree48436b350da26f4ec978ec48a42b68fb61ebe2f9 /src/pm-action.in
parent15c62582af5193f10fb7e612c2b1abb8072f793f (diff)
Determine what sleep method we will try before sourcing pm-functions
Lays some groundwork for allowing autodetect of sleep methods.
Diffstat (limited to 'src/pm-action.in')
-rwxr-xr-xsrc/pm-action.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pm-action.in b/src/pm-action.in
index bc83b3c..5e7ca87 100755
--- a/src/pm-action.in
+++ b/src/pm-action.in
@@ -26,6 +26,7 @@
# The rule here? Simplicity.
export STASHNAME=pm-suspend
+export METHOD="$(echo ${0##*pm-} |tr - _)"
. "@PM-UTILS-LIBDIR@/pm-functions"
help()
@@ -67,7 +68,6 @@ do
shift
done
-METHOD="$(echo ${0##*pm-} |tr - _)"
command_exists "check_$METHOD" && command_exists "do_$METHOD" || {
log "pm-utils does not know how to $METHOD on this system."