Changeset 1f1c1d8 in freewrt
- Timestamp:
- Sep 24, 2006, 4:27:06 AM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 1cf739c
- Parents:
- 644c736
- File:
-
- 1 edited
-
scripts/flash.sh (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scripts/flash.sh
r644c736 r1f1c1d8 24 24 usage() { 25 25 cat <<EOF 26 Usage: $0 firmware.bin 26 Usage: $0 firmware.bin [address] 27 27 28 28 The following models are supported: … … 45 45 2) be sure your link is up and has an address in the 46 46 192.168.1.0/24 address range (other than 192.168.1.1) 47 or specify an IP address where to flash to 47 48 48 49 EOF … … 51 52 52 53 file=${1:-/nonexistant} 54 ip=${2:-192.168.1.1} 53 55 54 56 test -s "$file" || usage … … 57 59 *-asus-wl500g-*.bin) 58 60 echo Confirming IP address setting... 59 echo -en "get ASUSSPACELINK\x01\x01\xa8\xc0 /dev/null\nquit\n" | tftp 192.168.1.160 echo Flashing 192.168.1.1using "$file"...61 echo -en "binary\nput $file ASUSSPACELINK\nquit\n" | tftp 192.168.1.161 echo -en "get ASUSSPACELINK\x01\x01\xa8\xc0 /dev/null\nquit\n" | tftp $ip 62 echo Flashing $ip using "$file"... 63 echo -en "binary\nput $file ASUSSPACELINK\nquit\n" | tftp $ip 62 64 echo Please wait until leds stops flashing. Device will automatically reboot. 63 65 ;; 64 66 *-asus-wl500g-deluxe-*.bin | *-asus-wl500g-premium-*.bin) 65 echo Flashing 192.168.1.1using "$file"...66 echo -en "rexmt 1\ntrace\nbinary\nput $file\nquit\n" | tftp 192.168.1.167 echo Flashing $ip using "$file"... 68 echo -en "rexmt 1\ntrace\nbinary\nput $file\nquit\n" | tftp $ip 67 69 echo Please wait 5-7 minutes and then remove the power. 68 70 echo This device does not reboot automatically after flashing. 69 71 ;; 70 72 *-linksys-*.bin) 71 echo Flashing 192.168.1.1using "$file"...72 echo -en "rexmt 1\ntrace\nbinary\nput $file\nquit\n" | tftp 192.168.1.173 echo Flashing $ip using "$file"... 74 echo -en "rexmt 1\ntrace\nbinary\nput $file\nquit\n" | tftp $ip 73 75 echo Unit will automatically reboot within 3-7 minutes. Do not power off. 74 76 ;; … … 78 80 ;; 79 81 esac 80 echo After that you can login via: ssh admin@ 192.168.1.182 echo After that you can login via: ssh admin@$ip 81 83 echo Default password, unless changed in menuconfig, is: FreeWRT
Note:
See TracChangeset
for help on using the changeset viewer.
