ramips: fix Youku-YK1 support
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 01_leds
index a0baa61027105f94bad9da569623b84e08fed130..037331df965069afefea67a0774526336a1d2c4c 100755 (executable)
@@ -253,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"
@@ -367,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"
@@ -456,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