* Parse isolinux.cfg case-insensatively.

This commit is contained in:
Joey Hess 2007-08-02 02:43:19 +00:00
parent 0f58fb6aab
commit 0b03aad504
3 changed files with 10 additions and 9 deletions

3
debian/changelog vendored
View File

@ -54,8 +54,9 @@ debian-cd (3.0.3) UNRELEASED; urgency=low
[ Joey Hess ]
* Drop old with26 cruft for lenny.
* Update lenny's isolinux.bin to the one from syslinux 3.51-1
* Parse isolinux.cfg case-insensatively.
-- Joey Hess <joeyh@debian.org> Wed, 01 Aug 2007 22:30:08 -0400
-- Joey Hess <joeyh@debian.org> Wed, 01 Aug 2007 22:42:56 -0400
debian-cd (3.0.2) unstable; urgency=high

View File

@ -146,10 +146,10 @@ if [ -e boot$N/isolinux/isolinux.cfg ] ; then
done
cat boot$N/isolinux-amd64/isolinux.cfg | awk '
/^LABEL/ { printf("LABEL amd64-%s\n", $2) }
/^DEFAULT/ { printf("DEFAULT64 amd64-%s\n", $2) }
/kernel/ { print $0 }
/append/ { print $0 }' >> boot$N/isolinux/isolinux.cfg
/^[Ll][Aa][Bb][Ee][Ll]/ { printf("LABEL amd64-%s\n", $2) }
/^[Dd][Ee][Ff][Aa][Uu][Ll][Tt]/ { printf("default64 amd64-%s\n", $2) }
/[Kk][Ee][Rr][Nn][Ee][Ll]/ { print $0 }
/[Aa][Pp][Pp][Ee][Nn][Dd]/ { print $0 }' >> boot$N/isolinux/isolinux.cfg
else
mv -f boot$N/isolinux-amd64/* boot$N/isolinux
fi

View File

@ -202,10 +202,10 @@ if [ "$NN" = "1" ]; then
done
cat boot$N/isolinux-amd64/isolinux.cfg | awk '
/^LABEL/ { printf("LABEL amd64-%s\n", $2) }
/^DEFAULT/ { printf("DEFAULT64 amd64-%s\n", $2) }
/kernel/ { print $0 }
/append/ { print $0 }' >> boot$N/isolinux/isolinux.cfg
/^[Ll][Aa][Bb][Ee][Ll]/ { printf("label amd64-%s\n", $2) }
/^[Dd][Ee][Ff][Aa][Uu][Ll][Tt]/ { printf("default64 amd64-%s\n", $2) }
/[Kk][Ee][Rr][Nn][Ee][Ll]/ { print $0 }
/[Aa][Pp][Pp][Ee][Nn][Dd]/ { print $0 }' >> boot$N/isolinux/isolinux.cfg
rm -rf boot$N/isolinux-amd64
fi