Fixed bug that caused mvrefind to give rEFInd the NVRAM name "rEFInd
authorsrs5694 <srs5694@users.sourceforge.net>
Tue, 26 Jan 2016 19:45:01 +0000 (14:45 -0500)
committersrs5694 <srs5694@users.sourceforge.net>
Tue, 26 Jan 2016 19:45:01 +0000 (14:45 -0500)
Boot Manager" when installing it in the Windows boot manager's
location, rather than the intended "Windows Boot Manager" (to work
around bugs in some EFIs).

mvrefind

index 0c0bf15..4c2a66f 100755 (executable)
--- a/mvrefind
+++ b/mvrefind
@@ -243,7 +243,7 @@ AddNvramEntry() {
    fi
 
    if [[ $InstallIt == "1" ]] ; then
-      if [[ $EfiTargetDir == "/efi/microsoft/boot" ]] ; then
+      if [[ $EspTargetDir == "/efi/microsoft/boot" ]] ; then
          # Name it the way some firmware expects -- see http://mjg59.dreamwidth.org/20187.html
          $Efibootmgr -c -l $EfiEntryFilename -L "Windows Boot Manager" -d $InstallDisk -p $PartNum &> /dev/null
       else