diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-03-30 10:51:19 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-03-30 10:51:19 -0500 |
commit | 6eed56bc0073e8ff2cc5aad8ee9f3355e8bddd32 (patch) | |
tree | 779e5f284209d35d417ff5c3b623444ce0c709ca | |
parent | 116ed5d18838652f2405126958e8ed6e75527224 (diff) |
Final touchup to NEWS, make logging in pm-action a bit prettier.pm-utils-1.1.0
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | src/pm-action.in | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -65,6 +65,8 @@ There have also been major changes in the pm-utils project: support. * pm-utils now uses git as it source-control repository. You can - browse the code at http://cgit.freedesktop.org/pm-utils/, and + browse the code at http://cgit.freedesktop.org/pm-utils/ + + diff --git a/src/pm-action.in b/src/pm-action.in index 14d773f..af67263 100644 --- a/src/pm-action.in +++ b/src/pm-action.in @@ -75,10 +75,10 @@ rm -f "${INHIBIT}" # run the sleep hooks log "$(date): Running hooks for $ACTION." run_hooks sleep "$ACTION" -log -n "$(date): $METHOD now." +log "$(date): ${METHOD}ing" # Sleep only if we know how and if a hook did not inhibit us. command_exists "do_$METHOD" && [ ! -e "$INHIBIT" ] && { sync; "do_$METHOD"; } - +log "$(date): Awake." log "$(date): Running hooks for $REVERSE" # run the sleep hooks in reverse with the wakeup action run_hooks sleep "$REVERSE" reverse |