2 . /lib/functions/leds.sh
3 . /lib/functions/uci-defaults.sh
11 ucidef_set_led_netdev "lan" "LAN link" "blue:lan" "br-lan"
12 ucidef_set_led_netdev "wan" "WAN link" "blue:wan" "wan"
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"
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"
29 xzwifi,creativebox-v1)
30 ucidef_set_led_netdev "internet" "internet" "blue:internet" "wan"
35 ucidef_set_led_netdev "wan" "wan" "white:net" "wan"
38 ucidef_set_led_netdev "wan" "wan" "blue:net" "wan"
41 ucidef_set_led_netdev "internet" "internet" "blue:net" "wan"
48 ucidef_set_led_netdev "wan" "wan" "green:net" "wan"
52 ucidef_set_led_netdev "lan1" "lan1" "green:lan1" "lan1"
53 ucidef_set_led_netdev "lan2" "lan2" "green:lan2" "lan2"
56 ucidef_set_led_netdev "wan" "wan link" "blue:wan" "wan" "link"
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"
69 mikrotik,routerboard-760igs)
70 ucidef_set_led_netdev "sfp" "SFP" "blue:sfp" "sfp"
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"
81 ucidef_set_led_netdev "eth_link" "LAN link" "green:eth_link" "br-lan"
89 ucidef_set_led_netdev "wan" "wan" "green:wan" "wan"
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"
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"
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"
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"
119 xiaomi,mi-router-ac2100)
120 ucidef_set_led_netdev "wan-blue" "WAN (blue)" "blue:wan" "wan"
122 xiaomi,redmi-router-ac2100)
123 ucidef_set_led_netdev "wan" "wan" "white:wan" "wan"
126 ucidef_set_led_netdev "internet" "INTERNET" "green:wan" "wan"