bcm63xx: Allow 'colored' power leds.
[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 *AP96)
20 name="ap96"
21 ;;
22 *AW-NR580)
23 name="aw-nr580"
24 ;;
25 *"DIR-600 rev. A1")
26 name="dir-600-a1"
27 ;;
28 *"DIR-825 rev. B1")
29 name="dir-825-b1"
30 ;;
31 *EAP7660D)
32 name="eap7660d"
33 ;;
34 *"Bullet M")
35 name="bullet-m"
36 ;;
37 *"Nanostation M")
38 name="nanostation-m"
39 ;;
40 *JWAP003)
41 name="jwap003"
42 ;;
43 *LS-SR71)
44 name="ls-sr71"
45 ;;
46 *MZK-W04NU)
47 name="mzk-w04nu"
48 ;;
49 *MZK-W300NH)
50 name="mzk-w300nh"
51 ;;
52 *PB42)
53 name="pb42"
54 ;;
55 *PB44)
56 name="pb44"
57 ;;
58 *"RouterBOARD 411/A/AH")
59 name="rb-411"
60 ;;
61 *"RouterBOARD 411U")
62 name="rb-411u"
63 ;;
64 *"RouterBOARD 433/AH")
65 name="rb-433"
66 ;;
67 *"RouterBOARD 433UAH")
68 name="rb-433u"
69 ;;
70 *"RouterBOARD 450")
71 name="rb-450"
72 ;;
73 *"RouterBOARD 450G")
74 name="rb-450g"
75 ;;
76 *"RouterBOARD 493/AH")
77 name="rb-493"
78 ;;
79 *"RouterBOARD 750")
80 name="rb-750"
81 ;;
82 *"Rocket M")
83 name="rocket-m"
84 ;;
85 *RouterStation)
86 name="routerstation"
87 ;;
88 *"RouterStation Pro")
89 name="routerstation-pro"
90 ;;
91 *TEW-632BRP)
92 name="tew-632brp"
93 ;;
94 *TL-WR1043ND)
95 name="tl-wr1043nd"
96 ;;
97 *"DIR-615 rev. C1")
98 name="dir-615-c1"
99 ;;
100 *TL-MR3420)
101 name="tl-mr3420"
102 ;;
103 *TL-WA901ND)
104 name="tl-wa901nd"
105 ;;
106 *TL-WR741ND)
107 name="tl-wr741nd"
108 ;;
109 *"TL-WR841N v1")
110 name="tl-wr841n-v1"
111 ;;
112 *TL-WR941ND)
113 name="tl-wr941nd"
114 ;;
115 *WP543)
116 name="wp543"
117 ;;
118 *WNDR3700)
119 name="wndr3700"
120 ;;
121 *WNR2000)
122 name="wnr2000"
123 ;;
124 *WRT160NL)
125 name="wrt160nl"
126 ;;
127 *WRT400N)
128 name="wrt400n"
129 ;;
130 *WZR-HP-G300NH)
131 name="wzr-hp-g300nh"
132 ;;
133 *ZCN-1523H-2)
134 name="zcn-1523h-2"
135 ;;
136 *ZCN-1523H-5)
137 name="zcn-1523h-5"
138 ;;
139 *)
140 name="generic"
141 ;;
142 esac
143
144 echo $name
145 }
This page took 0.065957 seconds and 5 git commands to generate.