diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-07-10 13:49:34 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-07-10 13:49:34 -0500 |
commit | 6ec54f84dd4dcc0ed1f670cdcb1894f4ed6a6239 (patch) | |
tree | a01b39f238d7e9a129ca99554f3bedeb9a2c967e /src | |
parent | f76baff97225aa45221d553b7541d3e4db953a04 (diff) | |
parent | 873733dad6476a7c5f7ec6068fb0be7b4c62edbb (diff) |
Merge branch 'two-parameter-sleep-hooks'
Diffstat (limited to 'src')
-rwxr-xr-x | src/pm-action.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pm-action.in b/src/pm-action.in index e756793..bc83b3c 100755 --- a/src/pm-action.in +++ b/src/pm-action.in @@ -93,7 +93,7 @@ load_hook_parameters # run the sleep hooks log "$(date): Running hooks for $ACTION." -if run_hooks sleep "$ACTION"; then +if run_hooks sleep "$ACTION $METHOD"; then # Sleep only if we know how and if a hook did not inhibit us. log "$(date): performing $METHOD" sync @@ -104,7 +104,7 @@ else fi log "$(date): Running hooks for $REVERSE" # run the sleep hooks in reverse with the wakeup action -if run_hooks sleep "$REVERSE" reverse; then +if run_hooks sleep "$REVERSE $METHOD" reverse; then log "$(date): Finished." else exit 1 |