Lays some groundwork for allowing autodetect of sleep methods.
---
 src/pm-action.in |    2 +-
 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."
-- 
1.5.6.5

_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to