summaryrefslogtreecommitdiff
path: root/src/pm-powersave
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-02-02 12:14:31 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-02-02 12:14:31 -0600
commit7b30515881b033ed2d1e4e11f3c8b3bc5e205683 (patch)
treeee73db11a3caac1178209369339d48bc004f93bc /src/pm-powersave
parentfa5cbe713ac0360ecdeb6f6dae1a12ab8ed53dbf (diff)
Update pm-powersave to export the location of pm/functions in PM_FUNCTIONS
Diffstat (limited to 'src/pm-powersave')
-rwxr-xr-xsrc/pm-powersave4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pm-powersave b/src/pm-powersave
index 11ec1b9..5611586 100755
--- a/src/pm-powersave
+++ b/src/pm-powersave
@@ -25,8 +25,8 @@
#
POWERSAVE_LOGFILE="/dev/null"
-[ -f /usr/lib/pm-utils/functions ] || return 1
-. /usr/lib/pm-utils/functions
+PM_FUNCTIONS="/usr/lib/pm-utils/functions"
+. "${PM_FUNCTIONS}"
if [ "x$1" = "xtrue" -o "x$1" = "xfalse" ] ; then
init_logfile "${POWERSAVE_LOGFILE}"