Avoid adding an EOL at the end of f3/f4 syslinux help files

This commit is contained in:
Frans Pop 2008-11-13 00:23:16 +00:00
parent e37c9d5a1f
commit 1a47dd2a93
1 changed files with 2 additions and 7 deletions

View File

@ -220,13 +220,8 @@ if [ "$THISTYPE" = "isolinux" ]; then
# Handle merging amd64 and i386 isolinux dirs if both are present.
if [ -e boot$N/isolinux-amd64/isolinux.cfg ] && [ -e boot$N/isolinux/isolinux.cfg ]; then
for file in boot$N/isolinux/f3.txt* boot$N/isolinux/f4.txt*
do
cat $file | awk '
NR==3 { next }
NR==5 { printf " (i386 is default; prepend 'amd64-' to use an amd64 kernel instead)\n" }
/.*/ { print $0 }' > $file.tmp
mv $file.tmp $file
for file in boot$N/isolinux/f3.txt* boot$N/isolinux/f4.txt*; do
sed -i "4 s/^$/(note: i386 is default; prepend 'amd64-' to use an amd64 kernel instead)/" $file
done
sed -i -e "/^arch=/d