Redboot access script
From DD-WRT Wiki
(Difference between revisions)
Revision as of 11:33, 7 July 2009 (edit) Sash (Talk | contribs) (New page: Category:English documentation __TOC__ These scripts provide an easy way for accessing your redboot especially when the bootwait timeout is very short! =Access script for Windows= ...) ← Previous diff |
Current revision (21:18, 5 January 2019) (edit) (undo) Ian5142 (Talk | contribs) (Added language header.) |
||
(2 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | + | {{Languages|Redboot_access_script}} | |
- | + | ||
- | + | ||
__TOC__ | __TOC__ | ||
Line 20: | Line 18: | ||
ping 192.168.20.81 -n 1 -w 1 >NULL | ping 192.168.20.81 -n 1 -w 1 >NULL | ||
IF ERRORLEVEL 1 goto start | IF ERRORLEVEL 1 goto start | ||
+ | break | ||
- | rem putty | + | rem start putty |
rem ------------------------------------------------ | rem ------------------------------------------------ | ||
- | break | ||
putty.exe telnet://192.168.20.81:9000 -m redboot.txt | putty.exe telnet://192.168.20.81:9000 -m redboot.txt | ||
exit | exit | ||
Line 29: | Line 27: | ||
for "192.168.20.81" set the ip of the redboot you want to connect.<br> | for "192.168.20.81" set the ip of the redboot you want to connect.<br> | ||
start the bat file and power on the router. maybe you will have to try it 2 or 3 times<br> | start the bat file and power on the router. maybe you will have to try it 2 or 3 times<br> | ||
- | |||
=Access script for Linux= | =Access script for Linux= | ||
Line 51: | Line 48: | ||
fi | fi | ||
done | done | ||
+ | |||
+ | [[Category:Bootloaders]] |
Current revision
English • Deutsch • Español • Français • Italiano • 日本語 • Polski • Português • Русский • Svenska • 中文(中国大陆) • 中文(台灣) • |
Contents |
These scripts provide an easy way for accessing your redboot especially when the bootwait timeout is very short!
[edit] Access script for Windows
download putty.exe to c:\
create a file on c:\ called redboot.txt, with the following content:
^C
create a file on c:\ called redboot.bat with the following content:
rem echo off :start rem ------------------------------------------------ ping 192.168.20.81 -n 1 -w 1 >NULL IF ERRORLEVEL 1 goto start break rem start putty rem ------------------------------------------------ putty.exe telnet://192.168.20.81:9000 -m redboot.txt exit
for "192.168.20.81" set the ip of the redboot you want to connect.
start the bat file and power on the router. maybe you will have to try it 2 or 3 times
[edit] Access script for Linux
be sure you have putty installed
#!/bin/bash echo echo "" echo "Enter hostname or ip address: " read host while true do if eval "ping -c 1 -s 1 $host" > /dev/null; then echo "Router Awake" putty telnet://$host 9000 -m redboot.txt break else echo "Waiting for Redboot to boot. Press CTRL + C to quit" sleep 1 fi done