[Pm-utils] [PATCH 6/7] Modify pm-utils scripts to source pm-functions instead of functions.

Victor Lowther victor.lowther at gmail.com
Sat Feb 9 21:24:50 PST 2008


---
 src/pm-action.in       |    3 +--
 src/pm-is-supported.in |    2 +-
 src/pm-powersave.in    |    3 +--
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/pm-action.in b/src/pm-action.in
index 5694651..09ed6c9 100644
--- a/src/pm-action.in
+++ b/src/pm-action.in
@@ -84,8 +84,7 @@ do
 	shift
 done
 
-export PM_FUNCTIONS="@PM-UTILS-LIBDIR@/functions"
-. "${PM_FUNCTIONS}"
+. "@PM-UTILS-LIBDIR@/pm-functions"
 
 ACTION="$(echo ${0##*pm-} |tr - _)"
 
diff --git a/src/pm-is-supported.in b/src/pm-is-supported.in
index 62947f7..d7bf88c 100644
--- a/src/pm-is-supported.in
+++ b/src/pm-is-supported.in
@@ -16,7 +16,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #
 
-. "@PM-UTILS-LIBDIR@/functions"
+. "@PM-UTILS-LIBDIR@/pm-functions"
 
 help_options() {
 	echo "pm-is-supported [--suspend | --hibernate | --suspend-hybrid ]"
diff --git a/src/pm-powersave.in b/src/pm-powersave.in
index 5098cf8..44a00d6 100644
--- a/src/pm-powersave.in
+++ b/src/pm-powersave.in
@@ -25,8 +25,7 @@
 #
 
 POWERSAVE_LOGFILE="/dev/null"
-export PM_FUNCTIONS="@PM-UTILS-LIBDIR@/functions"
-. "${PM_FUNCTIONS}"
+. "@PM-UTILS-LIBDIR@/pm-functions"
 
 if [ "$1" = "true" -o "$1" = "false" ] ; then
     init_logfile "${POWERSAVE_LOGFILE}"
-- 
1.5.3.8



More information about the Pm-utils mailing list