[Pm-utils] [patch] fix variable exporting

Stefan Seyfried seife at suse.de
Mon Mar 26 08:14:10 PDT 2007


Hi,

we need to export all the variables or there will be... trouble.

===================================================================
RCS file: /cvs/pm-utils/pm-utils/pm/functions,v
retrieving revision 1.44
diff -u -p -r1.44 functions
--- pm/functions	26 Mar 2007 14:18:07 -0000	1.44
+++ pm/functions	26 Mar 2007 15:13:12 -0000
@@ -8,13 +8,13 @@ export PATH=/sbin:/usr/sbin:/bin:/usr/bi
 # PM_CMDLINE
 # RESUME_MODULES
 #
+set -a
 HIBERNATE_RESUME_POST_VIDEO=no
 INHIBIT=/var/run/pm-utils.inhibit
 PM_LOGFILE=${PM_LOGFILE:=/var/log/pm-suspend.log}
 SUSPEND_MODULES=""
 TEMPORARY_CPUFREQ_GOVERNOR="userspace"
 
-set -a
 [ -f /usr/lib/pm-utils/defaults ] && . /usr/lib/pm-utils/defaults
 set +a
 
-- 
Stefan Seyfried

"Any ideas, John?"
"Well, surrounding them's out." 


More information about the Pm-utils mailing list