Browse files

syslinux: retain indentation of old sections.

  • Loading branch information...
1 parent c6745ce commit 404186cdb592285a28becc7f79ef8a6c2a123ca9 @sofar sofar committed Jul 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 system/syslinux/plugin.d/bootloader-syslinux.plugin
View
2 system/syslinux/plugin.d/bootloader-syslinux.plugin
@@ -49,6 +49,7 @@ plugin_kernel_updatebootloader_syslinux() {
fi
TMP=$(temp_create)
+ IFS=$'\n'
while read LINE ; do
if [ -z "$DONE" ]; then
if echo "$LINE" | grep -q "^\s*label" ; then
@@ -59,6 +60,7 @@ plugin_kernel_updatebootloader_syslinux() {
fi
echo "$LINE" >> $TMP
done < /boot/extlinux/extlinux.conf
+ IFS=$' \t\n'
cp $TMP /boot/extlinux/extlinux.conf
temp_destroy $TMP

0 comments on commit 404186c

Please sign in to comment.