Changeset 9879ab4 in freewrt for scripts


Ignore:
Timestamp:
Sep 16, 2006, 11:55:41 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
557d2ba
Parents:
618e4fc
Message:
  • remove redundancy
  • remove whitespace at EOL etc.
  • don't confuse command line (ssh admin@192.168.1.1. <- that full stop was used to denote the end of the sentence, but people might type it)
  • passwords can be changed after all

git-svn-id: svn://www.freewrt.org/trunk/freewrt@621 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/flash.sh

    r618e4fc r9879ab4  
    11#!/usr/bin/env bash
    22#
    3 # tftp flash script for wireless routers 
     3# tftp flash script for wireless routers
    44#
    55# Copyright (C) 2004 by Oleg I. Vdovikin <oleg@cs.msu.su>
     
    1919# along with this program; if not, write to the Free Software
    2020# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    21 #
    2221
    2322if [ -z "$1" ] || [ ! -f $1 ] || [ -z $2 ]; then
     
    3130
    3231IMPORTANT:
    33 Notes for Linksys routers: 
     32Notes for Linksys routers:
    3433   be sure you have set boot_wait to yes. Power on your router
    3534   after executing this script.
    36  
     35
    3736Notes for Asus routers:
    3837   be sure POWER led is flashing (If this is not the case
     
    5251echo Flashing 192.168.1.1 using $1...
    5352echo -en "binary\nput $1 ASUSSPACELINK\nquit\n" | tftp 192.168.1.1
    54 echo Please wait until leds stops flashing. Device will automatically reboot.
    55 echo After that you can login via ssh admin@192.168.1.1.
    56 echo Default password is: FreeWRT
     53echo Please wait until leds stops flashing. Device will automatically reboot.
    5754elif [ "$2" == "asus_wl500gd" -o "$2" == "asus_wl500gp" ]; then
    5855echo Flashing 192.168.1.1 using $1...
    5956echo -en "rexmt 1\ntrace\nbinary\nput $1\nquit\n" | tftp 192.168.1.1
    60 echo Please wait 5-7 minutes and then remove the power. 
     57echo Please wait 5-7 minutes and then remove the power.
    6158echo This device does not reboot automatically after flashing.
    62 echo After that you can login via ssh admin@192.168.1.1.
    63 echo Default password is: FreeWRT
    6459else
    6560echo Flashing 192.168.1.1 using $1...
    6661echo -en "rexmt 1\ntrace\nbinary\nput $1\nquit\n" | tftp 192.168.1.1
    67 echo Unit will automatically reboot within 3-7 minutes.  Do not power off. 
    68 echo After that you can login via ssh admin@192.168.1.1.
    69 echo Default password is: FreeWRT
     62echo Unit will automatically reboot within 3-7 minutes.  Do not power off.
    7063fi
     64echo After that you can login via: ssh admin@192.168.1.1
     65echo Default password, unless changed in menuconfig, is: FreeWRT
Note: See TracChangeset for help on using the changeset viewer.