From 23cadc96f0e54784ab9679427a6b293aab9cc205 Mon Sep 17 00:00:00 2001
From: Andreas Loibl <andreas@andreas-loibl.de>
Date: Wed, 28 Sep 2011 02:16:16 +0200
Subject: fix: different menus for EFI: test always returns 0 if variable is
 uninitialized

---
 config/binary_grub/grub.cfg | 10 +++++-----
 1 file 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
 
-- 
cgit v1.0