[Pm-utils] [PATCH 1/2] Move PM_CMDLINE declaration into pm_functions.in.

Victor Lowther victor.lowther at gmail.com
Tue Mar 11 18:23:34 PDT 2008


THis patch series applies on top of the dynamic-hook-disable patch series.

This lays the groundwork for allowing the user to add default parameters
to potentially override the ones that HAL passes to us.

This patch series follows on the hook-option-processing work.  Since it is 
now up to the hooks to parse parameters passed to pm-action, a mechanism to 
allow the user to supplement or override the parameters that HAL passes could
come in handy.

It does for me, at least -- HAL consistently Gets It Wrong when passing video 
quirks to pm-action on my machine.
---
 pm/pm-functions.in |    1 +
 src/pm-action.in   |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index 120bc33..bdea9c9 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -17,6 +17,7 @@ set -a
 PM_UTILS_LIBDIR="@PM-UTILS-LIBDIR@"
 PM_UTILS_ETCDIR="@PM-UTILS-SYSCONFDIR@"
 PM_UTILS_RUNDIR="/var/run/pm-utils"
+PM_CMDLINE="$*"
 
 PATH=/sbin:/usr/sbin:/bin:/usr/bin:"${PM_UTILS_LIBDIR}"/bin
 HIBERNATE_MODE="platform"
diff --git a/src/pm-action.in b/src/pm-action.in
index 3359a1b..3872853 100644
--- a/src/pm-action.in
+++ b/src/pm-action.in
@@ -29,7 +29,6 @@
 . "@PM-UTILS-LIBDIR@/pm-functions"
 
 # save the command line parameters for the hooks.
-export PM_CMDLINE="$*"
 help()
 {
 	echo "${0##*/} [options]"
-- 
1.5.4.3



More information about the Pm-utils mailing list