summaryrefslogtreecommitdiff
path: root/config/binary_grub
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-09-28 02:16:16 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-09-28 02:16:16 +0200
commit23cadc96f0e54784ab9679427a6b293aab9cc205 (patch)
treea4e48b0f730c0c2b734bf3e503a586d705ebe2d2 /config/binary_grub
parent3949b1c825e5262d0d3eb3b6ddd76f0449f684e0 (diff)
downloadkanotix-23cadc96f0e54784ab9679427a6b293aab9cc205.zip
kanotix-23cadc96f0e54784ab9679427a6b293aab9cc205.tar.gz
fix: different menus for EFI: test always returns 0 if variable is uninitialized
Diffstat (limited to 'config/binary_grub')
-rw-r--r--config/binary_grub/grub.cfg10
1 files changed, 5 insertions, 5 deletions
diff --git a/config/binary_grub/grub.cfg b/config/binary_grub/grub.cfg
index 7bde79b..be46f1e 100644
--- a/config/binary_grub/grub.cfg
+++ b/config/binary_grub/grub.cfg
@@ -71,7 +71,11 @@ menuentry 'Start Kanotix EN (failsafe)' --class kanotix64 --class gnu-linux --cl
initrd /live/initrd.img
}
-if [ $efi = 1 ] ; then
+if [ $efi != 1 ] ; then
+ menuentry 'Memtest86+' --class memtest {
+ linux16 /live/memtest
+ }
+else
menuentry 'EFI Shell' {
chainloader /efi/shellx64.efi
}
@@ -81,9 +85,5 @@ if [ $efi = 1 ] ; then
chainloader /EFI/Boot/BOOTX64.EFI
}
fi
-else
- menuentry 'Memtest86+' --class memtest {
- linux16 /live/memtest
- }
fi