summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-01-29 18:24:41 +0000
committerRichard Hughes <richard@hughsie.com>2008-01-29 18:24:41 +0000
commita89c9649210479110f4af37f27b905434920f607 (patch)
tree7c7cbe847fcc179be127ae994c9bc065357a3211 /src
parent5a5e848b49e33ebf538953bdd132e8ccb0d7377b (diff)
Patch attached to do the appropriate redirection for pm-powersave.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/pm-powersave2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pm-powersave b/src/pm-powersave
index 84acbaf..11ec1b9 100755
--- a/src/pm-powersave
+++ b/src/pm-powersave
@@ -24,10 +24,12 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
+POWERSAVE_LOGFILE="/dev/null"
[ -f /usr/lib/pm-utils/functions ] || return 1
. /usr/lib/pm-utils/functions
if [ "x$1" = "xtrue" -o "x$1" = "xfalse" ] ; then
+ init_logfile "${POWERSAVE_LOGFILE}"
run_hooks power "$1"
else
echo "Argument needs to be true or false" >&2