From 0ef6140b0dfdf44009c170d69288a1a324a1c528 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 11 Jun 2011 00:21:10 -0500 Subject: main/syslinux: fix some bugs --- main/syslinux/update-extlinux | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'main/syslinux/update-extlinux') diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux index 831eaa05bd..8a5509b9e3 100755 --- a/main/syslinux/update-extlinux +++ b/main/syslinux/update-extlinux @@ -39,15 +39,19 @@ if [ "$fancy_menu" = "1" ]; then echo "DEFAULT vesamenu.c32" > /boot/extlinux.conf.new echo "PROMPT 0" >> /boot/extlinux.conf.new - echo "MENU TITLE Alpine/$(uname -s) Boot Menu" >> /boot/extlinux.conf - echo "MENU HIDDEN" >> /boot/extlinux.conf.new + echo "MENU TITLE Alpine/$(uname -s) Boot Menu" >> /boot/extlinux.conf.new + if [ "$hidden" = "1" ]; then + echo "MENU HIDDEN" >> /boot/extlinux.conf.new + fi echo "MENU AUTOBOOT Alpine will be booted automatically in # seconds." >> /boot/extlinux.conf.new echo "TIMEOUT $rtimeout" >> /boot/extlinux.conf.new else echo "DEFAULT menu.c32" > /boot/extlinux.conf.new echo "PROMPT 0" >> /boot/extlinux.conf.new - echo "MENU TITLE Alpine/$(uname -s) Boot Menu" >> /boot/extlinux.conf - echo "MENU HIDDEN" >> /boot/extlinux.conf.new + echo "MENU TITLE Alpine/$(uname -s) Boot Menu" >> /boot/extlinux.conf.new + if [ "$hidden" = "1" ]; then + echo "MENU HIDDEN" >> /boot/extlinux.conf.new + fi echo "MENU AUTOBOOT Alpine will be booted automatically in # seconds." >> /boot/extlinux.conf.new echo "TIMEOUT $rtimeout" >> /boot/extlinux.conf.new fi @@ -72,11 +76,11 @@ for kernel in $(find /boot -name vmlinuz-* -type f); do lst=$(($lst + 1)) done -if [ -f "/boot/memtest.bin" ]; then - everbose "Found memtest86+: /boot/memtest.bin" +if [ -f "/boot/memtest" ]; then + everbose "Found memtest86+: /boot/memtest" echo "LABEL $lst" >> /boot/extlinux.conf.new echo " MENU LABEL Memtest86+" >> /boot/extlinux.conf.new - echo " KERNEL memtest.bin" >> /boot/extlinux.conf.new + echo " KERNEL memtest" >> /boot/extlinux.conf.new lst=$(($lst + 1)) fi -- cgit v1.2.3