summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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