summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds
blob: d29328e4b01bc09e770f9fdb7118c42f167707eb (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
#!/bin/sh

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

board=$(board_name)

board_config_update

case $board in
7links,px-4885-4m|\
7links,px-4885-8m|\
fon,fonera-20n)
	ucidef_set_led_netdev "wifi_led" "wifi" "orange:wifi" "wlan0"
	;;
airlive,air3gii|\
aximcom,mr-102n|\
edimax,3g-6200nl|\
netgear,wnce2001)
	ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
	;;
alfa-network,w502u|\
dlink,dir-300-b1|\
dlink,dir-300-b7|\
dlink,dir-320-b1|\
dlink,dir-600-b1|\
dlink,dir-610-a1|\
dlink,dir-615-h1|\
dlink,dir-620-a1|\
engenius,esr-9753|\
hilink,hlk-rm04|\
nexx,wt1520-4m|\
nexx,wt1520-8m|\
skyline,sl-r7205|\
tenda,w306r-v2|\
zyxel,keenetic-start|\
zyxel,keenetic|\
zyxel,nbg-419n-v2)
	ucidef_set_led_netdev "wifi_led" "wifi" "rt2800pci-phy0::radio" "wlan0"
	;;
allnet,all0256n-4m|\
allnet,all0256n-8m)
	ucidef_set_rssimon "wlan0" "200000" "1"
	ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssilow" "wlan0" "1" "40" "0" "6"
	ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssimed" "wlan0" "30" "80" "-29" "5"
	ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "70" "100" "-69" "8"
	ucidef_set_led_netdev "wifi_led" "wifi" "rt2800pci-phy0::radio" "wlan0"
	;;
alphanetworks,asl26555-8m|\
alphanetworks,asl26555-16m)
	ucidef_set_led_netdev "eth" "ETH" "green:eth" "eth0"
	ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
	;;
asiarf,awapn2403)
	ucidef_set_led_netdev "wifi_led" "wifi" "rt2800soc-phy0::radio" "wlan0"
	;;
dlink,dcs-930l-b1)
	ucidef_set_led_netdev "wifi" "WiFi" "blue:wps"
	;;
dlink,dir-615-d)
	ucidef_set_led_netdev "wan" "WAN (green)" "green:wan" "eth0.2"
	ucidef_set_led_netdev "wifi_led" "wifi" "rt2800soc-phy0::radio" "wlan0"
	;;
dlink,dir-620-d1|\
trendnet,tew-714tru)
	ucidef_set_led_netdev "wifi_led" "wifi" "green:wifi" "wlan0"
	;;
edimax,3g-6200n|\
planex,mzk-w300nh2)
	ucidef_set_led_netdev "wifi_led" "wifi" "amber:wlan" "wlan0"
	;;
hauppauge,broadway)
	ucidef_set_led_netdev "wifi_led" "wifi" "red:wps_active" "wlan0"
	;;
hootoo,ht-tm02)
	ucidef_set_led_netdev "eth" "Ethernet" "green:lan" "eth0"
	ucidef_set_led_netdev "wifi_led" "wifi" "blue:wlan" "wlan0"
	;;
huawei,hg255d)
	ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
	ucidef_set_led_netdev "internet" "internet" "green:internet" "eth0.2"
	;;
intenso,memory2move)
	ucidef_set_led_netdev "wifi_led" "wifi" "blue:wifi" "wlan0"
	ucidef_set_led_netdev "eth" "Ethernet" "green:wan" "eth0"
	;;
omnima,miniembplug)
	ucidef_set_led_netdev "wifi_led" "wifi" "red:wlan" "wlan0"
	;;
vocore,vocore-8m|\
vocore,vocore-16m)
	ucidef_set_led_netdev "eth" "ETH" "orange:eth" "eth0"
	;;
zorlik,zl5900v2)
	ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0"
	;;
zte,mf283plus)
	ucidef_set_led_wlan "wifi" "wifi" "rt2800soc-phy0::radio" "phy0tpt"
	ucidef_set_led_netdev "wwan" "wwan" "blue:wwan" "wwan0"
	;;
esac

board_config_flush

exit 0