ramips: fix Youku-YK1 support
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 01_leds
index ff5d156f2c259e6b28ffe882ca30afa7f6ea0b07..037331df965069afefea67a0774526336a1d2c4c 100755 (executable)
@@ -82,6 +82,16 @@ broadway)
        set_usb_led "$board:red:diskmounted"
        set_wifi_led "$board:red:wps_active"
        ;;
+c108)
+       ucidef_set_led_netdev "lan" "lan" "$board:green:lan" "eth0"
+       ucidef_set_led_netdev "modem" "modem" "$board:green:modem" "wwan0"
+       ;;
+c20)
+       ucidef_set_led_switch "lan" "lan" "$board:blue:lan" "switch0" "0x1e"
+       ucidef_set_led_switch "wan" "wan" "$board:blue:wan" "switch0" "0x01"
+       set_usb_led "$board:blue:usb"
+       ucidef_set_led_netdev "wlan2g" "wlan2g" "$board:blue:wlan2g" "wlan0"
+       ;;
 c20i)
        ucidef_set_led_switch "lan" "lan" "$board:blue:lan" "switch0" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$board:blue:wan" "switch0" "0x01"
@@ -243,8 +253,9 @@ miniembplug)
        set_usb_led "$board:green:mobile"
        ;;
 mir3g)
-       ucidef_set_led_netdev "eth" "Ethernet" "$board:red:wan" "eth0"
-       set_usb_led "$board:blue:usb"
+       ucidef_set_led_switch "wan-amber"  "WAN (amber)"  "$board:amber:wan"  "switch0" "0x02" "0x08"
+       ucidef_set_led_switch "lan1-amber" "LAN1 (amber)" "$board:amber:lan1" "switch0" "0x08" "0x08"
+       ucidef_set_led_switch "lan2-amber" "LAN2 (amber)" "$board:amber:lan2" "switch0" "0x04" "0x08"
        ;;
 miwifi-mini)
        ucidef_set_led_default "power" "power" "$board:red:status" "1"
@@ -357,6 +368,10 @@ tl-wr841n-v13)
        ucidef_set_led_switch "lan4" "lan4" "$board:green:lan4" "switch0" "0x10"
        ucidef_set_led_switch "wan" "wan" "$board:green:wan" "switch0" "0x01"
        ;;
+u25awf-h1)
+       set_wifi_led "u25awf:red:wifi"
+       ucidef_set_led_netdev "eth" "eth" "u25awf:green:lan" "eth0"
+       ;;
 vocore-8M|\
 vocore-16M)
        ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0"
@@ -375,6 +390,11 @@ w502u)
 wcr-150gn)
        set_usb_led "$board:amber:user"
        ;;
+we1026-5g-16m)
+       ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
+       set_wifi_led "we1026-5g:green:wifi"
+       set_usb_led "we1026-5g:green:usb" "1-1.1"
+       ;;
 whr-1166d|\
 whr-300hp2|\
 whr-600d)
@@ -441,9 +461,9 @@ zte-q7)
        set_wifi_led "$board:blue:status"
        ;;
 youku-yk1)
-       ucidef_set_led_default "power" "power" "$board:blue:power" "1"
        set_wifi_led "$board:blue:air"
        set_usb_led "$board:blue:usb"
+       ucidef_set_led_switch "wan" "wan" "$board:blue:wan" "switch0" "0x10"
        ;;
 esac