summaryrefslogtreecommitdiff
path: root/pm/pm-functions.in
AgeCommit message (Collapse)AuthorFilesLines
2008-03-20Use 'all' instead of "*" to remove all commandline paraameters.Victor Lowther1-2/+2
2008-03-20Added easy support to drop all parameters.Victor Lowther1-1/+2
Just set DROP_PARAMETERS to "*"
2008-03-20Changed kernel hibernation to use the default kernel method unless overridden.Victor Lowther1-1/+1
Hopefully this will get rid of the bug reports where "platform" causes problems. If it does not, we should probably default to "shutdown" as the default method.
2008-03-19Fixups in hook blacklisting and parameter removal.Victor Lowther1-2/+3
2008-03-19remove_parameters was not doing The Right Thing.Victor Lowther1-9/+10
Rewrote parameter removal loop to try and fix that.
2008-03-19Make the hook blacklist and parameter overrides use env. variables.Victor Lowther1-26/+23
This came about after a long discussion with mbiebl on the best way to configure settings in pm-utils.
2008-03-19Merge branch 'vlowther-stabilization-bugfixes' into vlowther-default-parametersVictor Lowther1-8/+11
Conflicts: pm/pm-functions.in
2008-03-19Added copious commenting in the defaults file.Victor Lowther1-4/+8
2008-03-18Addind logging to add_parameter and remove_parameterVictor Lowther1-1/+5
2008-03-18Fix logic error in remove_parameter.Victor Lowther1-1/+1
2008-03-18Updated /etc/pm/parameters parsing.Victor Lowther1-4/+22
Now we can add and remove parameters passed from our invoker.
2008-03-17Add more logging -- log parameters and the hook blacklist.Victor Lowther1-4/+4
This patch adds basic logging of our commandline parameters before and after loading the parameter overrides. It also adds logging of our initial blacklist entries.
2008-03-16Consolidated console save/restore code.Victor Lowther1-3/+1
Instead of having console switch/restore logic spread out all over the place, have 00clear perform all our console switching.
2008-03-16Fix bug where pm-is-supported could only be run as root.Victor Lowther1-3/+8
Now we only parse the blacklist and the default parameters when we are taking the suspend lock.
2008-03-15Mostly seperated vt switching logic from the suspend_lock logic.Victor Lowther1-4/+2
This should fix the breakage implemented by moving the locking.
2008-03-15Restore separate logging functionalityVictor Lowther1-6/+9
Somehow the changes introduced by 1fb77e994d7d1628c86324066693fd23d4abfb6c got dropped in the merge process. Restored them.
2008-03-15Merge branch 'vlowther-dynamic-hook-disable' into vlowther-default-parametersVictor Lowther1-1/+0
2008-03-15Merge branch 'master' into vlowther-dynamic-hook-disableVictor Lowther1-1/+0
Conflicts: pm/pm-functions.in
2008-03-14Split functions.in into functions.in and pm-functions.inVictor Lowther1-0/+131
pm-functions.in contains the functionality that should only be used by the pm-utils frontends (pm-action, pm-is-supported, and pm-powersave). functions.in contains code that is shared between the hooks and the pm-utils frontends. The reason behind splitting this out is to reduce namespace pollution in the hooks and to eventaully make it easier to split the hooks into their own package.
2008-03-11Merge branch 'vlowther-dynamic-hook-disable' into vlowther-default-parametersVictor Lowther1-1/+5
2008-03-11Optionally ignore two leading digits in the hook filename in hook_okVictor Lowther1-1/+5
Requested by Michael Biebl.
2008-03-09Added support for passing default parameters.Victor Lowther1-0/+13
We add them in the "$PM_UTILS_ETCDIR/parameters" file, and they are simply appended to the PM_CMDLINE env variable.
2008-03-09Move PM_CMDLINE declaration into pm_functions.in.Victor Lowther1-0/+1
This lays the groundwork for allowing the user to add default parameters to potentially override the ones that HAL passes to us.
2008-03-09Ensure wwe have made $STORAGEDIR before trying to blacklist hooks.Victor Lowther1-0/+1
2008-03-09Really really make reading the default blacklist work.Victor Lowther1-1/+1
2008-03-09Actually source the correct blacklist file.Victor Lowther1-1/+1
2008-03-07Moved the "Running hook" diagnostic message in run_hooks.Victor Lowther1-1/+2
2008-03-06Change the default blacklist location to PM_SYSCONFDIR.Victor Lowther1-2/+4
Also add before_hooks support to run_hooks.
2008-03-06Have pm-functions.in read an initial list of hooks to blacklist.Victor Lowther1-0/+12
Be a little smart about it, and allow comments.
2008-03-06Make run_hooks skip disabled hooks.Victor Lowther1-2/+13
Eventually we will print a helpful diagnostic in the logfile saying what disabled the hook based on the contents of the disabled file, but that is a job for a later date.
2008-03-05Split functions.in into functions.in and pm-functions.inVictor Lowther1-0/+131
pm-functions.in contains the functionality that should only be used by the pm-utils frontends (pm-action, pm-is-supported, and pm-powersave). functions.in contains code that is shared between the hooks and the pm-utils frontends. The reason behind splitting this out is to reduce namespace pollution in the hooks.