# generated from XKB map jp106 include common map 0x411 exclam 0x02 shift kana_NU 0x02 altgr quotedbl 0x03 shift kana_FU 0x03 altgr numbersign 0x04 shift kana_A 0x04 altgr kana_a 0x04 shift altgr dollar 0x05 shift kana_U 0x05 altgr kana_u 0x05 shift altgr percent 0x06 shift kana_E 0x06 altgr kana_e 0x06 shift altgr ampersand 0x07 shift kana_O 0x07 altgr kana_o 0x07 shift altgr apostrophe 0x08 shift kana_YA 0x08 altgr kana_ya 0x08 shift altgr parenleft 0x09 shift kana_YU 0x09 altgr kana_yu 0x09 shift altgr parenright 0x0a shift kana_YO 0x0a altgr kana_yo 0x0a shift altgr asciitilde 0x0b shift kana_WA 0x0b altgr kana_WO 0x0b shift altgr minus 0x0c equal 0x0c shift kana_HO 0x0c altgr asciicircum 0x0d asciitilde 0x0d shift kana_HE 0x0d altgr kana_TA 0x10 altgr kana_TE 0x11 altgr kana_I 0x12 altgr kana_i 0x12 shift altgr kana_SU 0x13 altgr kana_KA 0x14 altgr kana_N 0x15 altgr kana_NA 0x16 altgr kana_NI 0x17 altgr kana_RA 0x18 altgr kana_SE 0x19 altgr at 0x1a grave 0x1a shift voicedsound 0x1a altgr bracketleft 0x1b braceleft 0x1b shift semivoicedsound 0x1b altgr kana_openingbracket 0x1b shift altgr kana_CHI 0x1e altgr kana_TO 0x1f altgr kana_SHI 0x20 altgr kana_HA 0x21 altgr kana_KI 0x22 altgr kana_KU 0x23 altgr kana_MA 0x24 altgr kana_NO 0x25 altgr kana_RI 0x26 altgr semicolon 0x27 plus 0x27 shift kana_RE 0x27 altgr colon 0x28 asterisk 0x28 shift kana_KE 0x28 altgr Zenkaku_Hankaku 0x29 bracketright 0x2b braceright 0x2b shift kana_MU 0x2b altgr kana_closingbracket 0x2b shift altgr kana_TSU 0x2c altgr kana_tsu 0x2c shift altgr kana_SA 0x2d altgr kana_SO 0x2e altgr kana_HI 0x2f altgr kana_KO 0x30 altgr kana_MI 0x31 altgr kana_MO 0x32 altgr comma 0x33 less 0x33 shift kana_NE 0x33 altgr kana_comma 0x33 shift altgr period 0x34 greater 0x34 shift kana_RU 0x34 altgr kana_fullstop 0x34 shift altgr slash 0x35 question 0x35 shift kana_ME 0x35 altgr kana_conjunctive 0x35 shift altgr Eisu_toggle 0x3a shift Execute 0x54 shift Kanji 0x70 backslash 0x73 bar 0x7d shift underscore 0x73 shift Henkan_Mode 0x79 Katakana 0x70 Muhenkan 0x7b Henkan_Mode_Real 0x79 Henkan_Mode_Ultra 0x79 backslash_ja 0x73 ecommitdiffstats
path: root/scripts/flashing/flash.sh
blob: d568ed5b22f2756652eeba15470808e03f51fbe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
#
# tftp flash script for wireless routers
#
# Copyright (C) 2004 by Oleg I. Vdovikin <oleg@cs.msu.su>
# Copyright (C) 2005 by Waldemar Brodkorb <wbx@openwrt.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

if [ -z "$1" ] || [ ! -f "$1" ] || [ -z "$2" ]; then
    echo Usage: "$0" firmware vendor
cat << EOF
IMPORTANT:
Notes for Linksys / Asus WL500gx router:
   be sure you have set boot_wait to yes. Power on your router
   after executing this script.

Notes for Asus WL500g router:
   be sure POWER led is flashing (If this is not the case
   poweroff the device, push the reset button & power on
   it again, then release button)

1) connect your pc to the LAN port
2) be sure your link is up and has an address in the
   192.168.1.0/24 address range (and not the 192.168.1.1)

Notes for Toshiba router:
   boot_wait is enabled by default on these units.

1) connect your pc to any of the four LAN ports
2) be sure your link is up and has an address in the
   192.168.10.1/24 address range (and not the 192.168.10.1)
3) run this script (unit will only accept .trx images)
4) Turn unit power on.

EOF
    exit 0
fi
if [ "$2" = "asus" ]; then
echo Confirming IP address setting...
echo -en "get ASUSSPACELINK\x01\x01\xa8\xc0 /dev/null\nquit\n" | tftp 192.168.1.1
echo Flashing 192.168.1.1 using "$1"...
echo -en "binary\nput $1 ASUSSPACELINK\nquit\n" | tftp 192.168.1.1
echo Please wait until leds stops flashing.
elif [ "$2" = "linksys" ]; then
echo Flashing 192.168.1.1 using "$1"...
echo -en "rexmt 1\ntrace\nbinary\nput $1\nquit\n" | tftp 192.168.1.1
echo Please wait until power led stops flashing. Do not poweroff! Then you can login via telnet 192.168.1.1.
elif [ "$2" = "toshiba" ]; then
echo Flashing 192.168.10.1 using "$1"...
echo -en "rexmt 1\ntrace\nbinary\nput $1\nquit\n" | tftp 192.168.10.1
echo Unit will automatically reboot within 5 minutes.  Do not power off.  Then you can login via telnet 192.168.10.1.
fi