summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-03-09 14:56:05 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-03-09 14:56:05 -0500
commit73157d2bd3fc9ece5b5747bf69dfc39d4b2e0390 (patch)
treec40da9548ead94b1dc3b9ce62701d413e2aea3c0
parent47cc4095aa3a310b829a9b274d5de0f7e6af7326 (diff)
Move PM_CMDLINE declaration into pm_functions.in.
This lays the groundwork for allowing the user to add default parameters to potentially override the ones that HAL passes to us.
-rw-r--r--pm/pm-functions.in1
-rw-r--r--src/pm-action.in1
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]"