From 589d7d3981b9de2534cb5b4f9c6567425319341e Mon Sep 17 00:00:00 2001 From: Dubiousjim Date: Sat, 29 Jun 2013 16:41:24 -0400 Subject: main/syslinux: reorganize menu layout Add a blank line between any entries added from /etc/update-extlinux.d/*. Move the memtest entry (if any) after a separator line, below these. --- main/syslinux/update-extlinux | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'main/syslinux') diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux index 014df1bbe9b..0dc360170ba 100755 --- a/main/syslinux/update-extlinux +++ b/main/syslinux/update-extlinux @@ -134,20 +134,24 @@ for kernel in $(find /boot -name "vmlinuz-*" -type f); do lst=$(($lst + 1)) done +everbose "$lst entries found." + +for entry in /etc/update-extlinux.d/*; do + [ -f "$entry" ] && { cat $entry; echo ""; } >> $conf.new +done + +echo "MENU SEPARATOR" >> $conf.new +echo "" >> $conf.new + if [ -f "/boot/memtest" ]; then everbose "Found memtest86+: /boot/memtest" echo "LABEL memtest" >> $conf.new echo " MENU LABEL Memtest86+" >> $conf.new echo " KERNEL memtest" >> $conf.new echo "" >> $conf.new - lst=$(($lst + 1)) fi -everbose "$lst entries found." -for entry in /etc/update-extlinux.d/*; do - [ -f "$entry" ] && cat $entry >> $conf.new -done if [ "$overwrite" != "1" ]; then exit 0 -- cgit v1.2.3