[Pm-utils] [PATCH 2/6] Determine what sleep method we will try before sourcing pm-functions
Victor Lowther
victor.lowther at gmail.com
Wed Sep 17 20:22:42 PDT 2008
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
More information about the Pm-utils
mailing list