Created
January 31, 2013 08:46
-
-
Save derekgates/4681400 to your computer and use it in GitHub Desktop.
"Installer" for tomato firmware. Put tomato.trx (can be official or a mod) in same directory. Script takes care of the rest with prompts. This is from polarcloud (official Tomato creator).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo =========================================================================== | |
echo This batch file will upload tomato.trx in the current directory to | |
echo 192.168.11.1 during the router's bootup. | |
echo. | |
echo * Set your ethernet card's settings to: | |
echo IP: 192.168.1.2 | |
echo Mask: 255.255.255.0 | |
echo Gateway: 192.168.1.1. | |
echo * Unplug the router's power cable. | |
echo. | |
echo Press Ctrl+C to abort or any other key to continue... | |
pause > nul | |
echo. | |
echo * Re-plug the router's power cable. | |
echo. | |
echo =============================================================================== | |
echo Waiting for the router... Press Ctrl+C to abort. | |
echo. | |
set FIND=%WINDIR%\command\find.exe | |
if exist %FIND% goto PING | |
set FIND=%WINDIR%\system32\find.exe | |
if exist %FIND% goto PING | |
set FIND=find | |
:PING | |
ping -n 1 -w 50 192.168.1.1 | %FIND% "TTL=" | |
if errorlevel 1 goto PING | |
echo tftp -i 192.168.1.1 put tomato-ND.trx | |
tftp -i 192.168.1.1 put tomato-ND.trx | |
if errorlevel 1 goto PING | |
set FIND= | |
echo. | |
echo =============================================================================== | |
echo * WAIT for about 2 minutes while the firmware is being flashed. | |
echo * Reset your ethernet card's settings back to DHCP. | |
echo * The default router address will be at 192.168.1.1. | |
echo. | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment