linux: ar71xx: add support for Mikrotik Routerboard RB493G
[openwrt.git] / target / linux / ar71xx / base-files / lib / ar71xx.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 2009 OpenWrt.org
4 #
5
6 ar71xx_board_name() {
7 local machine
8 local name
9
10 machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
11
12 case "$machine" in
13 *AP121)
14 name="ap121"
15 ;;
16 *AP121-MINI)
17 name="ap121-mini"
18 ;;
19 *AP81)
20 name="ap81"
21 ;;
22 *AP83)
23 name="ap83"
24 ;;
25 *AP96)
26 name="ap96"
27 ;;
28 *AW-NR580)
29 name="aw-nr580"
30 ;;
31 *"DIR-600 rev. A1")
32 name="dir-600-a1"
33 ;;
34 *"DIR-825 rev. B1")
35 name="dir-825-b1"
36 ;;
37 *EAP7660D)
38 name="eap7660d"
39 ;;
40 *JA76PF)
41 name="ja76pf"
42 ;;
43 *"Bullet M")
44 name="bullet-m"
45 ;;
46 *"Nanostation M")
47 name="nanostation-m"
48 ;;
49 *JWAP003)
50 name="jwap003"
51 ;;
52 *LS-SR71)
53 name="ls-sr71"
54 ;;
55 *MZK-W04NU)
56 name="mzk-w04nu"
57 ;;
58 *MZK-W300NH)
59 name="mzk-w300nh"
60 ;;
61 *"NBG460N/550N/550NH")
62 name="nbg460n_550n_550nh"
63 ;;
64 *PB42)
65 name="pb42"
66 ;;
67 *PB44)
68 name="pb44"
69 ;;
70 *PB92)
71 name="pb92"
72 ;;
73 *"RouterBOARD 411/A/AH")
74 name="rb-411"
75 ;;
76 *"RouterBOARD 411U")
77 name="rb-411u"
78 ;;
79 *"RouterBOARD 433/AH")
80 name="rb-433"
81 ;;
82 *"RouterBOARD 433UAH")
83 name="rb-433u"
84 ;;
85 *"RouterBOARD 450")
86 name="rb-450"
87 ;;
88 *"RouterBOARD 450G")
89 name="rb-450g"
90 ;;
91 *"RouterBOARD 493/AH")
92 name="rb-493"
93 ;;
94 *"RouterBOARD 493G")
95 name="rb-493g"
96 ;;
97 *"RouterBOARD 750")
98 name="rb-750"
99 ;;
100 *"Rocket M")
101 name="rocket-m"
102 ;;
103 *RouterStation)
104 name="routerstation"
105 ;;
106 *"RouterStation Pro")
107 name="routerstation-pro"
108 ;;
109 *TEW-632BRP)
110 name="tew-632brp"
111 ;;
112 *TL-WR1043ND)
113 name="tl-wr1043nd"
114 ;;
115 *"DIR-615 rev. C1")
116 name="dir-615-c1"
117 ;;
118 *TL-MR3220)
119 name="tl-mr3220"
120 ;;
121 *TL-MR3420)
122 name="tl-mr3420"
123 ;;
124 *TL-WA901ND)
125 name="tl-wa901nd"
126 ;;
127 *"TL-WA901ND v2")
128 name="tl-wa901nd-v2"
129 ;;
130 *TL-WR741ND)
131 name="tl-wr741nd"
132 ;;
133 *"TL-WR841N v1")
134 name="tl-wr841n-v1"
135 ;;
136 *TL-WR941ND)
137 name="tl-wr941nd"
138 ;;
139 *"TL-WR703N v1")
140 name="tl-wr703n"
141 ;;
142 *UniFi)
143 name="unifi"
144 ;;
145 *WP543)
146 name="wp543"
147 ;;
148 *WNDR3700)
149 name="wndr3700"
150 ;;
151 *WNDR3700v2)
152 name="wndr3700v2"
153 ;;
154 *WNR2000)
155 name="wnr2000"
156 ;;
157 *WRT160NL)
158 name="wrt160nl"
159 ;;
160 *WRT400N)
161 name="wrt400n"
162 ;;
163 *WZR-HP-AG300H)
164 name="wzr-hp-ag300h"
165 ;;
166 *WZR-HP-G300NH)
167 name="wzr-hp-g300nh"
168 ;;
169 *ZCN-1523H-2)
170 name="zcn-1523h-2"
171 ;;
172 *ZCN-1523H-5)
173 name="zcn-1523h-5"
174 ;;
175 *)
176 name="generic"
177 ;;
178 esac
179
180 echo $name
181 }
This page took 0.116705 seconds and 5 git commands to generate.