Hi,

this is needed to make the function source_configs do anything remotely
useful at all:

--- functions   2006-10-05 17:38:10.000000000 +0200
+++ functions.new       2006-10-06 13:31:54.000000000 +0200
@@ -20,11 +20,11 @@ source_configs()
                [[ "$cfg" =~ ".*~$" ]] && continue
                STR=". $cfg"
                for v in $GLOBAL_CONFIG_VARIABLES ; do
-                       STR="$STR ; echo x_$v=\"\$(eval echo \$$v)\""
+                       STR="$STR ; echo x_$v=\\\"\$(eval echo \$$v)\\\""
                done
                eval $(bash -c "$STR")
                for v in $GLOBAL_CONFIG_VARIABLES ; do
-                       eval $v="$(eval echo $(eval echo \$$v) \$x_$v)"
+                       eval $v="\"$(eval echo $(eval echo \$$v) \$x_$v)\""
                done
        done
 }

Otherwise, it will bomb if you have e.g. SUSPEND_MODULES="button hermes" and
a config file in /etc/pm/config.d/

But what is this function supposed to do at all?
It will right now append the value of HIBERNATE_RESUME_POST_VIDEO to the
variable one time for every additional config file 
(HIBERNATE_RESUME_POST_VIDEO="no no").
I cannot imagine that this is the idea behind this function.

Should it just prevent the overwriting of the GLOBAL_CONFIG_VARIABLES by
other config files?
-- 
Stefan Seyfried
QA / R&D Team Mobile Devices        |              "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg  | "Well, surrounding them's out." 
_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to