Changeset 692
- Timestamp:
- 09/24/06 04:27:06 (2 years ago)
- Files:
-
- trunk/freewrt/scripts/flash.sh (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/freewrt/scripts/flash.sh
r687 r692 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


