From d049bc614d588d5484b572daca4ad1f8fdf01a70 Mon Sep 17 00:00:00 2001 From: fake Date: Wed, 16 Feb 2005 15:33:55 +0000 Subject: [PATCH] fake: grub: only add memtest86 to default boot menu if it is installed (this time it's tested) [2005012018474002197] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@5572 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/x86/grub/stone_mod_grub.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/x86/grub/stone_mod_grub.sh b/package/x86/grub/stone_mod_grub.sh index dc033a165..3076133ad 100644 --- a/package/x86/grub/stone_mod_grub.sh +++ b/package/x86/grub/stone_mod_grub.sh @@ -76,10 +76,14 @@ fallback 1 title ROCK Linux kernel $bootdrive$bootpath/vmlinuz root=$rootdev ro initrd $bootdrive$bootpath/initrd.img +EOT + if [ -f /boot/memtest86.bin ] ; then + cat << EOT >> /boot/grub/menu.lst title MemTest86 (SGI memory tester) kernel $bootdrive$bootpath/memtest86.bin EOT + fi gui_message "This is the new /boot/grub/menu.lst file: