Files
Infra-LAB/projects/MDT/Scripts/BIOSUpgrade/Lenovo/m46jt20usa/startup.nsh
T

62 lines
946 B
NSIS

echo -on
mode 80,25
;locate correct drive
cls
if exist .\flash.nsh then
goto FLASH
endif
if exist fs0:\AfuEfix64.efi then
fs0:
echo Found Flash Package on fs0:
goto FLASH
endif
if exist fs1:\AfuEfix64.efi then
fs1:
echo Found Flash Package on fs1:
goto FLASH
endif
if exist fs2:\AfuEfix64.efi then
fs2:
echo Found Flash Package on fs2:
goto FLASH
endif
if exist fs3:\AfuEfix64.efi then
fs3:
echo Found Flash Package on fs3:
goto FLASH
endif
if exist fs4:\AfuEfix64.efi then
fs4:
echo Found Flash Package on fs4:
goto FLASH
endif
if exist fs5:\AFU\AfuEfix64.efi then
fs5:
echo Found Flash Package on fs5:
goto FLASH
endif
:FLASH
echo -on
if exist .\IMAGEM46.rom then
goto AFUFLASH
endif
if exist \IMAGEM46.bin then
goto ROOTFLASH
endif
echo Could not find BIOS update file
goto END
:ROOTFLASH
flash2.efi IMAGEM46.rom /bb /rsmb
goto END
:AFUFLASH
flash2.efi IMAGEM46.rom /bb /rsmb
goto END
:END