@echo off
IF exist AFUDOS.EXE goto up2

@echo Update BIOS first...

ren AFUDOS.SMC AFUDOS.EXE

afudos BHDGT3.517 /P /B /N /C /R /L2 /REBOOT
goto end

:up2
@echo Update ROMHOLE 1 ...
afudos AGESAH.B1 /HOLE:AGESAH_B1

@echo Update ROMHOLE 2 ...
afudos PROTB12.BIN /HOLE:R892

ren AFUDOS.EXE AFUDOS.SMC

@echo ************************************************************************
@echo Please have AC power off system for 1 min. and then power on again.
@echo Friendly reminder: System BIOS will load as default setting. If you need 
@echo BIOS setting change, go into BIOS setup page and modify.
@echo ************************************************************************
:end
