@echo off
REM (January 15, 2009)
:BEGIN
set exe=fdl462a.exe
set model=
set family=Moose
set firmware=SD1AMOOS.LOD
set options=-s -x -b -v -a 20
cls
echo ====================================================================
echo STD Firmware Updates Moose Barracuda 7200.11 SD1A
echo All Capacities for Distribution tabs -303
echo.
echo.
echo Generic Disty/STD-OEM, 32MB Configurations
echo ====================================================================
echo A) Download Firmware to ST31000340AS 9BX158-300
echo B) Download Firmware to ST3750330AS 9BX156-300
echo C) Download Firmware to ST3640330AS 9BX15L-300
echo D) Download Firmware to ST3500320AS 9BX154-300
echo.
echo --------------------------------------------------------------------
echo S) Scan ATA devices
echo R) Read documentation and License Agreement
echo Z) Done
echo ====================================================================
choice /c:ABCDSRZ /n Selection:
if errorlevel 7 goto OFF
if errorlevel 6 goto README
if errorlevel 5 goto SCAN
if errorlevel 4 goto SEAFLASH4
if errorlevel 3 goto SEAFLASH3
if errorlevel 2 goto SEAFLASH2
if errorlevel 1 goto SEAFLASH1
:SEAFLASH1
set model=ST31000340AS
%exe% -m %family% -f %firmware% -i %model% %options%
if errorlevel 2 goto WRONGMODEL
if errorlevel 1 goto ERROR
goto DONE
:SEAFLASH2
set model=ST3750330AS
%exe% -m %family% -f %firmware% -i %model% %options%
if errorlevel 2 goto WRONGMODEL
if errorlevel 1 goto ERROR
goto DONE
:SEAFLASH3
set model=ST3640330AS
%exe% -m %family% -f %firmware% -i %model% %options%
if errorlevel 2 goto WRONGMODEL
if errorlevel 1 goto ERROR
goto DONE
:SEAFLASH4
set model=ST3500320AS
%exe% -m %family% -f %firmware% -i %model% %options%
if errorlevel 2 goto WRONGMODEL
if errorlevel 1 goto ERROR
goto DONE
:WRONGMODEL
echo.
echo ********
echo.
echo Error: Specific model not found. %model% expected.
echo.
echo ********
goto OFF
:ERROR
echo.
echo ********
echo.
echo ERROR!
echo.
echo ********
goto OFF
:SCAN
cls
seaenum
pause
goto BEGIN
:README
list readme.txt
goto BEGIN
:DONE
set exe=
set model=
set family=
set firmware=
set options=
echo.
echo.
echo Firmware has been updated.
echo DO NOT USE CTRL-ALT-DEL!!!!!!
echo You must power cycle the drive to complete the firmware download.
:OFF
echo.
echo Cycle power to continue...
pause
ctty nul
fdapm pureoff