summaryrefslogtreecommitdiffstats
path: root/main/syslinux/update-extlinux
diff options
context:
space:
mode:
Diffstat (limited to 'main/syslinux/update-extlinux')
-rwxr-xr-xmain/syslinux/update-extlinux18
1 files changed, 11 insertions, 7 deletions
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
index 831eaa05b..8a5509b9e 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