summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
blob: 324b57124f752dc6a30d9ffdbc85cba322feebf1 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191

. /lib/functions/leds.sh
. /lib/functions/uci-defaults.sh

board=$(board_name)

board_config_update

case $board in
alfa-network,awusfree1)
	ucidef_set_led_netdev "wifi_led" "wifi" "blue:wlan" "wlan0"
	;;
asus,rt-n10p-v3|\
asus,rt-n11p-b1|\
asus,rt-n12-vp-b1|\
netgear,r6020|\
netgear,r6080|\
netgear,r6120)
	ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0xf"
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10"
	;;
cudy,wr1000)
	ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x10"
	ucidef_set_led_switch "lan1" "lan1" "blue:lan1" "switch0" "0x08"
	ucidef_set_led_switch "lan2" "lan2" "blue:lan2" "switch0" "0x04"
	;;
dlink,dap-1325-a1)
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "wifi-verylow" "wifi-verylow" "red:wifi-verylow" "wlan0" "1" "24"
	ucidef_set_led_rssi "wifi-low" "wifi-low" "green:wifi-low" "wlan0" "25" "100"
	ucidef_set_led_rssi "wifi-med" "wifi-med" "green:wifi-mid" "wlan0" "50" "100"
	ucidef_set_led_rssi "wifi-high" "wifi-high" "green:wifi-high" "wlan0" "75" "100"
	;;
elecom,wrc-1167fs)
	ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8"
	ucidef_set_led_switch "internet" "internet" "green:internet" "switch0" "0x10"
	;;
glinet,gl-mt300n-v2)
	ucidef_set_led_netdev "wifi_led" "wifi" "red:wlan" "wlan0"
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x1"
	;;
hilink,hlk-7628n|\
skylab,skw92a)
	ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
	;;
hilink,hlk-7688a)
	ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
	;;
hiwifi,hc5611)
	ucidef_set_led_netdev "internet" "internet" "red:internet" "br-lan" "tx rx"
	;;
hiwifi,hc5661a|\
hiwifi,hc5761a)
	ucidef_set_led_switch "internet" "internet" "blue:internet" "switch0" "0x10"
	;;
keenetic,kn-1613)
	ucidef_set_led_switch "internet" "internet" "green:internet" "switch0" "0x01"
	;;
mediatek,linkit-smart-7688)
	ucidef_set_led_wlan "wifi" "wifi" "orange:wifi" "phy0tpt"
	;;
oraybox,x1)
	ucidef_set_led_netdev "wifi" "wifi" "blue:status" "wlan0"
	;;
rakwireless,rak633)
	ucidef_set_led_netdev "wifi_led" "wifi" "blue:wifi" "wlan0"
	;;
tama,w06)
	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
	ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
	;;
tplink,archer-c20-v4|\
tplink,archer-c20-v5|\
tplink,tl-wr850n-v2)
	ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e"
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
	;;
tplink,archer-c50-v3|\
tplink,archer-c50-v4|\
tplink,archer-c50-v6)
	ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e"
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
	ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan2g" "phy0tpt"
	ucidef_set_led_wlan "wlan5g" "wlan5g" "green:wlan5g" "phy1tpt"
	;;
tplink,archer-mr200-v5)
	ucidef_set_led_netdev "lan" "lan" "white:lan" "eth0"
	ucidef_set_led_netdev "wan" "wan" "white:wan" "wwan0"
	;;
tplink,re200-v2|\
tplink,re200-v3|\
tplink,re200-v4|\
tplink,re220-v2|\
tplink,tl-mr3020-v3|\
tplink,tl-wa801nd-v5)
	ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0"
	;;
tplink,re205-v3)
	ucidef_set_led_netdev "lan" "lan" "blue:signal" "eth0"
	;;
tplink,re365-v1)
	ucidef_set_led_netdev "lan" "lan" "blue:lan" "eth0"
	;;
tplink,tl-mr3420-v5|\
tplink,tl-wr840n-v4|\
tplink,tl-wr842n-v5)
	ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan" "phy0tpt"
	ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e"
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
	;;
tplink,tl-mr6400-v4)
	ucidef_set_led_switch "lan" "lan" "white:lan" "switch0" "0x0e"
	ucidef_set_led_switch "wan" "wan" "white:wan" "switch0" "0x10"
	;;
tplink,tl-mr6400-v5)
	ucidef_set_led_switch "lan" "lan" "white:lan" "switch0" "0x07"
	ucidef_set_led_switch "wan" "wan" "white:wan" "switch0" "0x08"
	;;
tplink,tl-wr841n-v13)
	ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan" "phy0tpt"
	ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x2"
	ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x4"
	ucidef_set_led_switch "lan3" "lan3" "green:lan3" "switch0" "0x8"
	ucidef_set_led_switch "lan4" "lan4" "green:lan4" "switch0" "0x10"
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
	;;
tplink,tl-wr841n-v14)
	ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e"
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
	ucidef_set_led_wlan "wifi_led" "wifi" "green:wlan" "phy0tpt"
	;;
tplink,tl-wr902ac-v3)
	ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan" "phy0tpt"
	ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x10"
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10"
	;;
tplink,tl-wr902ac-v4)
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10"
	;;
unielec,u7628-01-16m)
	ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x2"
	ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x4"
	ucidef_set_led_switch "lan3" "lan3" "green:lan3" "switch0" "0x8"
	ucidef_set_led_switch "lan4" "lan4" "green:lan4" "switch0" "0x10"
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
	ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
	;;
wavlink,wl-wn570ha1)
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "wifi-low" "wifi-low" "green:wifi-low" "wlan0" "1" "49"
	ucidef_set_led_rssi "wifi-med" "wifi-med" "green:wifi-med" "wlan0" "50" "84"
	ucidef_set_led_rssi "wifi-high" "wifi-high" "green:wifi-high" "wlan0" "85" "100"
	ucidef_set_led_netdev "wifi_led" "wifi" "green:wifi" "wlan0"
	;;
wavlink,wl-wn575a3)
	ucidef_set_rssimon "wlan1" "200000" "1"
	ucidef_set_led_rssi "wifi-low" "wifi-low" "green:wifi-low" "wlan1" "1" "49"
	ucidef_set_led_rssi "wifi-med" "wifi-med" "green:wifi-med" "wlan1" "50" "84"
	ucidef_set_led_rssi "wifi-high" "wifi-high" "green:wifi-high" "wlan1" "85" "100"
	;;
wavlink,wl-wn576a2)
	ucidef_set_led_switch "lan" "lan" "blue:lan" "switch0" "0x10"
	;;
wavlink,wl-wn577a2|\
wavlink,wl-wn578a2)
	ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8"
	ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10"
	;;
xiaomi,mi-router-4a-100m|\
xiaomi,mi-router-4a-100m-intl)
	ucidef_set_led_switch "wan" "WAN" "blue:wan" "switch0" "0x01"
	;;
xiaomi,mi-router-4c)
	ucidef_set_led_switch "wan" "WAN" "blue:wan" "switch0" "0x02"
	;;
zbtlink,zbt-we1226)
	ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
	ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x01"
	ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x02"
	ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x10"
	;;
zyxel,keenetic-extra-ii)
	ucidef_set_led_netdev "wifi_led" "wifi" "green:wifi" "wlan0"
	ucidef_set_led_switch "internet" "internet" "green:internet" "switch0" "0x01"
	;;
esac

board_config_flush

exit 0