ramips: drop Edimax BR-6425 support
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 01_leds
old mode 100755 (executable)
new mode 100644 (file)
index 61f662b..db6910c
@@ -1,7 +1,6 @@
 #!/bin/sh
 
 . /lib/functions/uci-defaults.sh
-. /lib/ramips.sh
 
 set_usb_led() {
        ucidef_set_led_usbdev "usb" "USB" "${1}" "${2:-1-1}"
@@ -12,7 +11,7 @@ set_wifi_led() {
 }
 
 
-board=$(ramips_board_name)
+board=$(board_name)
 
 board_config_update
 
@@ -79,9 +78,6 @@ asl26555-16M)
 bc2)
        set_usb_led "$board:blue:usb"
        ;;
-br-6425)
-       set_wifi_led "$board:orange:wlan"
-       ;;
 broadway)
        set_usb_led "$board:red:diskmounted"
        set_wifi_led "$board:red:wps_active"
@@ -93,7 +89,6 @@ c20i)
        ucidef_set_led_wlan "wlan" "wlan" "$board:blue:wlan" "phy0radio"
        ;;
 c50)
-       ucidef_set_led_default "power" "power" "$board:green:power" "0"
        ucidef_set_led_switch "lan" "lan" "$board:green:lan" "switch0" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$board:green:wan" "switch0" "0x01"
        set_usb_led "$board:green:usb"
@@ -184,6 +179,10 @@ fonera20n)
        set_usb_led "$board:orange:usb"
        set_wifi_led "$board:orange:wifi"
        ;;
+gb-pc1)
+       ucidef_set_led_switch "lan1" "lan1" "$board:green:lan1" "switch0" "0x01"
+       ucidef_set_led_switch "lan2" "lan2" "$board:green:lan2" "switch0" "0x10"
+       ;;
 gl-mt300a|\
 gl-mt300n|\
 gl-mt750)
@@ -309,6 +308,12 @@ r6220)
        set_wifi_led "$board:green:wifi"
        set_usb_led "$board:green:usb"
        ;;
+re350-v1)
+       ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$board:blue:wifi2G" "wlan0"
+       ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$board:blue:wifi5G" "wlan1"
+       ucidef_set_led_netdev "eth_act" "LAN act" "$board:green:eth_act" "eth0" "tx rx"
+       ucidef_set_led_switch "eth_link" "LAN link" "$board:green:eth_link" "switch0" "0x01"
+       ;;
 re6500)
        ucidef_set_led_default "power" "power" "$board:white:power" "1"
        ucidef_set_led_default "wifi" "wifi" "$board:orange:wifi" "1"
@@ -336,6 +341,19 @@ tiny-ac)
        set_wifi_led "$board:orange:wifi"
        set_usb_led "$board:green:usb"
        ;;
+tl-wr840n-v4)
+       set_wifi_led "$board:green:wlan"
+       ucidef_set_led_switch "lan" "lan" "$board:green:lan" "switch0" "0x1e"
+       ucidef_set_led_switch "wan" "wan" "$board:green:wan" "switch0" "0x01"
+       ;;
+tl-wr841n-v13)
+       set_wifi_led "$board:green:wlan"
+       ucidef_set_led_switch "lan1" "lan1" "$board:green:lan1" "switch0" "0x2"
+       ucidef_set_led_switch "lan2" "lan2" "$board:green:lan2" "switch0" "0x4"
+       ucidef_set_led_switch "lan3" "lan3" "$board:green:lan3" "switch0" "0x8"
+       ucidef_set_led_switch "lan4" "lan4" "$board:green:lan4" "switch0" "0x10"
+       ucidef_set_led_switch "wan" "wan" "$board:green:wan" "switch0" "0x01"
+       ;;
 vocore-8M|\
 vocore-16M)
        ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0"