[source] ramips: Fix led init script for Lenovo Y1/Y1s

LEDE Commits lede-commits at lists.infradead.org
Sun Dec 4 07:38:20 PST 2016

blogic pushed a commit to source.git, branch master:

commit 960c477432475fb672a1c9b696a4419b9b644342
Author: BangLang Huang <banglang.huang at foxmail.com>
AuthorDate: Fri Dec 2 09:33:23 2016 +0800

    ramips: Fix led init script for Lenovo Y1/Y1s
    This commit fix the led init script for Lenovo Y1 and
    Y1S due to the manual and dts file.
    Signed-off-by: BangLang Huang <banglang.huang at foxmail.com>
 target/linux/ramips/base-files/etc/board.d/01_leds | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index ab077bf..9972039 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -339,11 +339,18 @@ wndr3700v5)
 	ucidef_set_led_default "power" "power" "$board:blue:power" "0"
+	set_usb_led "$board:blue:usb"
+	ucidef_set_led_netdev "wifi" "WIFI" "$board:blue:wifi" "wlan1"
+	ucidef_set_led_netdev "wifi5g" "WIFI5G" "$board:blue:wifi5g" "wlan0"
+	ucidef_set_led_netdev "lan" "LAN" "$board:blue:lan" "eth0.1" "tx rx"
+	ucidef_set_led_netdev "wan" "WAN" "$board:blue:internet" "eth0.2" "tx rx"
+	;;
-	ucidef_set_led_default "power" "power" "$board:blue:power" "1"
 	set_usb_led "$board:blue:usb"
-	set_wifi_led "$board:blue:wifi"
+	ucidef_set_led_netdev "wifi" "WIFI" "$board:yellow:wifi" "wlan1"
+	ucidef_set_led_netdev "wifi5g" "WIFI5G" "$board:blue:wifi" "wlan0"
+	ucidef_set_led_netdev "wan" "WAN" "$board:blue:internet" "eth0.2" "tx rx"
 	ucidef_set_led_netdev "wlan2g4" "wlan1-link" "$board:green:wlan2g4" "wlan1"

More information about the lede-commits mailing list