299528 tags +patch

It looks like -15 introduced a "fix" to the code that searched for $kopt
variables.  This patch improves that fix and fixes this bug by replacing
+ with _ when looking for $kopt variables.

--- /sbin/update-grub   2005-02-17 18:20:22.000000000 -0500
+++ /tmp/update-grub    2005-03-19 10:56:15.000000000 -0500
@@ -529,7 +529,7 @@
        kernel_version=$1
 
        version=$(echo $kernel_version | sed 's/^[^0-9]*//')
-       version=$(echo $kernel_version | sed 's/[.-]/_/g')
+       version=$(echo $version | sed 's/[-\+\.]/_/g')
        if [ -n "$version" ] ; then
                while [ -n "$version" ] ; do
                        currentOpt="$(eval "echo \$kopt_$version")"




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to