. /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) 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,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,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" ;; 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