ramips: add support for RAISECOM MSG1500 X.00
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / etc / board.d / 01_leds
1
2 . /lib/functions/leds.sh
3 . /lib/functions/uci-defaults.sh
4
5 board=$(board_name)
6
7 board_config_update
8
9 case $board in
10 asus,rt-n56u-b1)
11 ucidef_set_led_netdev "lan" "LAN link" "blue:lan" "br-lan"
12 ucidef_set_led_netdev "wan" "WAN link" "blue:wan" "wan"
13 ;;
14 cudy,wr2100)
15 ucidef_set_led_netdev "lan1" "lan1" "green:lan1" "lan1"
16 ucidef_set_led_netdev "lan2" "lan2" "green:lan2" "lan2"
17 ucidef_set_led_netdev "lan3" "lan3" "green:lan3" "lan3"
18 ucidef_set_led_netdev "lan4" "lan4" "green:lan4" "lan4"
19 ucidef_set_led_netdev "wan" "wan" "green:wan" "wan"
20 ;;
21 d-team,newifi-d2)
22 ucidef_set_led_netdev "internet" "internet" "amber:internet" "wan"
23 ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "blue:wlan2g" "wlan0"
24 ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "blue:wlan5g" "wlan1"
25 ;;
26 d-team,pbr-m1|\
27 gehua,ghl-r-001|\
28 jcg,y2|\
29 xzwifi,creativebox-v1)
30 ucidef_set_led_netdev "internet" "internet" "blue:internet" "wan"
31 ;;
32 dlink,dir-1960-a1|\
33 dlink,dir-2640-a1|\
34 dlink,dir-2660-a1)
35 ucidef_set_led_netdev "wan" "wan" "white:net" "wan"
36 ;;
37 dlink,dir-853-a3)
38 ucidef_set_led_netdev "wan" "wan" "blue:net" "wan"
39 ;;
40 dlink,dir-853-r1)
41 ucidef_set_led_netdev "internet" "internet" "blue:net" "wan"
42 ;;
43 dlink,dir-860l-b1|\
44 dlink,dir-867-a1|\
45 dlink,dir-878-a1|\
46 dlink,dir-882-a1|\
47 dlink,dir-882-r1)
48 ucidef_set_led_netdev "wan" "wan" "green:net" "wan"
49 ;;
50 gnubee,gb-pc1|\
51 gnubee,gb-pc2)
52 ucidef_set_led_netdev "lan1" "lan1" "green:lan1" "lan1"
53 ucidef_set_led_netdev "lan2" "lan2" "green:lan2" "lan2"
54 ;;
55 linksys,e5600)
56 ucidef_set_led_netdev "wan" "wan link" "blue:wan" "wan" "link"
57 ;;
58 linksys,ea7300-v1|\
59 linksys,ea7300-v2|\
60 linksys,ea7500-v2|\
61 linksys,ea8100-v1|\
62 linksys,ea8100-v2)
63 ucidef_set_led_netdev "lan1" "lan1 link" "green:lan1" "lan1" "link"
64 ucidef_set_led_netdev "lan2" "lan2 link" "green:lan2" "lan2" "link"
65 ucidef_set_led_netdev "lan3" "lan3 link" "green:lan3" "lan3" "link"
66 ucidef_set_led_netdev "lan4" "lan4 link" "green:lan4" "lan4" "link"
67 ucidef_set_led_netdev "wan" "wan link" "green:wan" "wan" "link"
68 ;;
69 mikrotik,routerboard-760igs)
70 ucidef_set_led_netdev "sfp" "SFP" "blue:sfp" "sfp"
71 ;;
72 mikrotik,routerboard-m11g)
73 ucidef_set_rssimon "wlan0" "200000" "1"
74 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssi0" "wlan0" "1" "100"
75 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssi1" "wlan0" "20" "100"
76 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssi2" "wlan0" "40" "100"
77 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssi3" "wlan0" "60" "100"
78 ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "green:rssi4" "wlan0" "80" "100"
79 ;;
80 mtc,wr1201)
81 ucidef_set_led_netdev "eth_link" "LAN link" "green:eth_link" "br-lan"
82 ;;
83 netgear,r6220|\
84 netgear,r6260|\
85 netgear,r6350|\
86 netgear,r6850|\
87 netgear,wac124|\
88 netgear,wndr3700-v5)
89 ucidef_set_led_netdev "wan" "wan" "green:wan" "wan"
90 ;;
91 netgear,r6700-v2|\
92 netgear,r6800|\
93 netgear,r6900-v2|\
94 netgear,r7200|\
95 netgear,r7450)
96 ucidef_set_led_netdev "wan" "WAN" "white:wan" "wan"
97 ucidef_set_led_netdev "lan1" "LAN1" "white:lan1" "lan1"
98 ucidef_set_led_netdev "lan2" "LAN2" "white:lan2" "lan2"
99 ucidef_set_led_netdev "lan3" "LAN3" "white:lan3" "lan3"
100 ucidef_set_led_netdev "lan4" "LAN4" "white:lan4" "lan4"
101 ;;
102 tplink,archer-a6-v3|\
103 tplink,archer-c6-v3|\
104 tplink,archer-c6u-v1)
105 ucidef_set_led_netdev "lan" "LAN" "green:lan" "br-lan"
106 ucidef_set_led_netdev "wan" "WAN" "green:wan" "wan"
107 ;;
108 tplink,re350-v1)
109 ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "blue:wifi2G" "wlan0"
110 ucidef_set_led_netdev "wifi5g" "Wifi 5G" "blue:wifi5G" "wlan1"
111 ucidef_set_led_netdev "eth_act" "LAN act" "green:eth_act" "lan" "tx rx"
112 ucidef_set_led_netdev "eth_link" "LAN link" "green:eth_link" "lan" "link"
113 ;;
114 tplink,re500-v1|\
115 tplink,re650-v1)
116 ucidef_set_led_netdev "eth_act" "LAN act" "green:eth_act" "lan" "tx rx"
117 ucidef_set_led_netdev "eth_link" "LAN link" "green:eth_link" "lan" "link"
118 ;;
119 xiaomi,mi-router-ac2100)
120 ucidef_set_led_netdev "wan-blue" "WAN (blue)" "blue:wan" "wan"
121 ;;
122 xiaomi,redmi-router-ac2100)
123 ucidef_set_led_netdev "wan" "wan" "white:wan" "wan"
124 ;;
125 youhua,wr1200js)
126 ucidef_set_led_netdev "internet" "INTERNET" "green:wan" "wan"
127 ;;
128 esac
129
130 board_config_flush
131
132 exit 0