adm5120: use kernel 2.6.32.12
[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 *AP81)
14 name="ap81"
15 ;;
16 *AP83)
17 name="ap83"
18 ;;
19 *AW-NR580)
20 name="aw-nr580"
21 ;;
22 *"DIR-600 rev. A1")
23 name="dir-600-a1"
24 ;;
25 *"DIR-825 rev. B1")
26 name="dir-825-b1"
27 ;;
28 *"Bullet M")
29 name="bullet-m"
30 ;;
31 *"Nanostation M")
32 name="nanostation-m"
33 ;;
34 *LS-SR71)
35 name="ls-sr71"
36 ;;
37 *MZK-W04NU)
38 name="mzk-w04nu"
39 ;;
40 *MZK-W300NH)
41 name="mzk-w300nh"
42 ;;
43 *PB42)
44 name="pb42"
45 ;;
46 *PB44)
47 name="pb44"
48 ;;
49 *"RouterBOARD 411/A/AH")
50 name="rb-411"
51 ;;
52 *"RouterBOARD 411U")
53 name="rb-411u"
54 ;;
55 *"RouterBOARD 433/AH")
56 name="rb-433"
57 ;;
58 *"RouterBOARD 433UAH")
59 name="rb-433u"
60 ;;
61 *"RouterBOARD 450")
62 name="rb-450"
63 ;;
64 *"RouterBOARD 450G")
65 name="rb-450g"
66 ;;
67 *"RouterBOARD 493/AH")
68 name="rb-493"
69 ;;
70 *"RouterBOARD 750")
71 name="rb-750"
72 ;;
73 *"Rocket M")
74 name="rocket-m"
75 ;;
76 *RouterStation)
77 name="routerstation"
78 ;;
79 *"RouterStation Pro")
80 name="routerstation-pro"
81 ;;
82 *TEW-632BRP)
83 name="tew-632brp"
84 ;;
85 *TL-WR1043ND)
86 name="tl-wr1043nd"
87 ;;
88 *"DIR-615 rev. C1")
89 name="dir-615-c1"
90 ;;
91 *TL-WR741ND)
92 name="tl-wr741nd"
93 ;;
94 *"TL-WR841N v1")
95 name="tl-wr841n-v1"
96 ;;
97 *TL-WR941ND)
98 name="tl-wr941nd"
99 ;;
100 *WP543)
101 name="wp543"
102 ;;
103 *WNDR3700)
104 name="wndr3700"
105 ;;
106 *WNR2000)
107 name="wnr2000"
108 ;;
109 *WRT160NL)
110 name="wrt160nl"
111 ;;
112 *WRT400N)
113 name="wrt400n"
114 ;;
115 *WZR-HP-G300NH)
116 name="wzr-hp-g300nh"
117 ;;
118 *)
119 name="generic"
120 ;;
121 esac
122
123 echo $name
124 }
This page took 0.067542 seconds and 5 git commands to generate.