summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-09-09 21:31:53 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-09-09 21:31:53 -0500
commitef78d2649b9a6a8b7745241f7ad1b8416f017a7f (patch)
treecf5f5f41548c882c618c67198b63612178b27a24 /pm
parent8a46966d6ea9329fba27f9eb3bfeaf298a419b36 (diff)
When pm-action is invoked without any parameters, grab them from HAL
This adds a bit of DWIM to pm-suspend and friends.
Diffstat (limited to 'pm')
-rwxr-xr-xpm/sleep.d/00auto-quirk4
1 files changed, 4 insertions, 0 deletions
diff --git a/pm/sleep.d/00auto-quirk b/pm/sleep.d/00auto-quirk
index 66440ac..a999c25 100755
--- a/pm/sleep.d/00auto-quirk
+++ b/pm/sleep.d/00auto-quirk
@@ -12,6 +12,10 @@ do_add_quirks()
mabye_add_quirks()
{
+ [ -z "$PM_CMDLINE" ] && {
+ do_add_quirks
+ return 0
+ }
for p in ${PM_CMDLINE}; do
[ "$p" = "--auto-quirks" ] || continue
do_add_quirks