Remove most of the variables from the autoexec.bat template
Instead use a *.report file for each component and add data as we go, culminating in the built image simply catting the report to the screen to show the user what is about to occur. This is on the path towards removing all variables from the autoexec template - which would make it simpler to reuse the same template for other commands (e.g the x200 series does not use dosflash.exe)pull/36/head
parent
409f88c75c
commit
c0b2178942
@ -1,24 +1,20 @@
|
||||
@ECHO OFF
|
||||
PROMPT $p$g
|
||||
cd c:\flash
|
||||
cls
|
||||
echo.
|
||||
echo.
|
||||
echo This will flash your firmware to support a classic 7-row keyboard
|
||||
echo.
|
||||
echo.
|
||||
echo WARNING: Incorrectly flashing your firmware can damage your laptop.
|
||||
echo Ensure this is the right firmware version before attempting to flash
|
||||
echo the firmware - there are minimal checks done.
|
||||
echo.
|
||||
echo This disc will flash the file __DIR\__FL2
|
||||
echo.
|
||||
echo This disk is prepared for __DESC
|
||||
echo.
|
||||
echo Buildinfo: __BUILDINFO
|
||||
echo Built: __BUILT
|
||||
echo.
|
||||
pause
|
||||
echo on
|
||||
dosflash /sd /ipf ec /file __DIR\__FL2
|
||||
|
||||
@ECHO OFF
|
||||
PROMPT $p$g
|
||||
cd c:\flash
|
||||
cls
|
||||
echo.
|
||||
echo.
|
||||
echo This will flash your Embedded controller firmware
|
||||
echo.
|
||||
echo.
|
||||
echo WARNING: Incorrectly flashing your firmware can damage your laptop.
|
||||
echo Ensure this is the right firmware version before attempting to flash
|
||||
echo the firmware - there are minimal checks done.
|
||||
echo.
|
||||
echo This disc will flash the file __DIR\__FL2
|
||||
echo.
|
||||
type c:\report.txt
|
||||
echo.
|
||||
pause
|
||||
echo on
|
||||
dosflash /sd /ipf ec /file __DIR\__FL2
|
||||
|
Loading…
Reference in New Issue