diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-05-27 18:59:13 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-05-27 18:59:13 -0500 |
commit | eb03d095b926b43f116b9549cc0f38c8439ec65f (patch) | |
tree | 1eb4685d239c83240af0148f77b6a83209097eed | |
parent | bc70374c72ca0cc04e777ed15639fef0c8b9c847 (diff) |
Save PM_CMDLINE correctly so that it shows up nicely in the logs.
-rw-r--r-- | pm/pm-functions.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in index 5532551..bfc771f 100644 --- a/pm/pm-functions.in +++ b/pm/pm-functions.in @@ -44,6 +44,7 @@ ADD_PARAMETERS="" DROP_PARAMETERS="" PARAMETERS="${STORAGEDIR}/parameters" NEW_PARAMETERS="${STORAGEDIR}/new_parameters" +PM_CMDLINE="$*" [ -f "${PM_UTILS_LIBDIR}"/defaults ] && . "${PM_UTILS_LIBDIR}"/defaults @@ -112,7 +113,7 @@ take_suspend_lock() # save our parameter list. mkdir -p "${STORAGEDIR}" [ -f "$PARAMETERS" ] || echo '' >"$PARAMETERS" - add_parameters "$@" + add_parameters "$PM_CMDLINE" return 0 } |