[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-pm-utils
Subject: [Pm-utils] [PATCH 2/6] Determine what sleep method we will try
From: Victor Lowther <victor.lowther () gmail ! com>
Date: 2008-09-18 3:22:42
Message-ID: 982784806793454ea3b87babb3b399d98c8d1639.1221707530.git.victor.lowther () gmail ! com
[Download RAW message or body]
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
Pm-utils@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pm-utils
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic