Changeset 2766


Ignore:
Timestamp:
2005-12-25T02:04:46+01:00 (12 years ago)
Author:
wbx
Message:

add toshiba tftp commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/scripts/flash.sh

    r378 r2766  
    11#!/bin/bash 
    2  
    3 # flash script for linksys and asus routers  
     2# 
     3# tftp flash script for wireless routers  
    44# 
    55# Copyright (C) 2004 by Oleg I. Vdovikin <oleg@cs.msu.su> 
    6 # Copyright (C) 2005 by Waldemar Brodkorb <wbx@dass-it.de> 
     6# Copyright (C) 2005 by Waldemar Brodkorb <wbx@openwrt.org> 
    77# 
    88# This program is free software; you can redistribute it and/or modify 
     
    2525cat << EOF 
    2626IMPORTANT: 
    27 Notes for Linksys router:  
     27Notes for Linksys / Asus WL500gx router:  
    2828   be sure you have set boot_wait to yes. Power on your router 
    2929   after executing this script. 
    3030  
    31 Notes for Asus router: 
     31Notes for Asus WL500g router: 
    3232   be sure POWER led is flashing (If this is not the case 
    3333   poweroff the device, push the reset button & power on 
     
    37372) be sure your link is up and has an address in the 
    3838   192.168.1.0/24 address range (and not the 192.168.1.1) 
     39 
     40Notes for Toshiba router: 
     41   boot_wait is enabled by default on these units. 
     42 
     431) connect your pc to any of the four LAN ports 
     442) be sure your link is up and has an address in the 
     45   192.168.10.1/24 address range (and not the 192.168.10.1) 
     463) run this script (unit will only accept .trx images) 
     474) Turn unit power on. 
     48 
    3949EOF 
    4050    exit 0 
     
    5060echo -en "rexmt 1\ntrace\nbinary\nput $1\nquit\n" | tftp 192.168.1.1 
    5161echo Please wait until power led stops flashing. Do not poweroff! Then you can login via telnet 192.168.1.1. 
     62elif [ "$2" == "toshiba" ]; then 
     63echo Flashing 192.168.10.1 using $1... 
     64echo -en "rexmt 1\ntrace\nbinary\nput $1\nquit\n" | tftp 192.168.10.1 
     65echo Unit will automatically reboot within 5 minutes.  Do not power off.  Then you can login via telnet 192.168.10.1. 
    5266fi 
Note: See TracChangeset for help on using the changeset viewer.