diff options
Diffstat (limited to 'main/syslinux/update-extlinux')
-rwxr-xr-x | main/syslinux/update-extlinux | 14 |
1 files changed, 9 insertions, 5 deletions
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 |