ar71xx: add AR933x specific USB setup function
[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 750")
95 name="rb-750"
96 ;;
97 *"Rocket M")
98 name="rocket-m"
99 ;;
100 *RouterStation)
101 name="routerstation"
102 ;;
103 *"RouterStation Pro")
104 name="routerstation-pro"
105 ;;
106 *TEW-632BRP)
107 name="tew-632brp"
108 ;;
109 *TL-WR1043ND)
110 name="tl-wr1043nd"
111 ;;
112 *"DIR-615 rev. C1")
113 name="dir-615-c1"
114 ;;
115 *TL-MR3220)
116 name="tl-mr3220"
117 ;;
118 *TL-MR3420)
119 name="tl-mr3420"
120 ;;
121 *TL-WA901ND)
122 name="tl-wa901nd"
123 ;;
124 *"TL-WA901ND v2")
125 name="tl-wa901nd-v2"
126 ;;
127 *TL-WR741ND)
128 name="tl-wr741nd"
129 ;;
130 *"TL-WR841N v1")
131 name="tl-wr841n-v1"
132 ;;
133 *TL-WR941ND)
134 name="tl-wr941nd"
135 ;;
136 *UniFi)
137 name="unifi"
138 ;;
139 *WP543)
140 name="wp543"
141 ;;
142 *WNDR3700)
143 name="wndr3700"
144 ;;
145 *WNDR3700v2)
146 name="wndr3700v2"
147 ;;
148 *WNR2000)
149 name="wnr2000"
150 ;;
151 *WRT160NL)
152 name="wrt160nl"
153 ;;
154 *WRT400N)
155 name="wrt400n"
156 ;;
157 *WZR-HP-AG300H)
158 name="wzr-hp-ag300h"
159 ;;
160 *WZR-HP-G300NH)
161 name="wzr-hp-g300nh"
162 ;;
163 *ZCN-1523H-2)
164 name="zcn-1523h-2"
165 ;;
166 *ZCN-1523H-5)
167 name="zcn-1523h-5"
168 ;;
169 *)
170 name="generic"
171 ;;
172 esac
173
174 echo $name
175 }
This page took 0.066247 seconds and 5 git commands to generate.