From: Martin Weinelt Date: Fri, 2 Nov 2018 19:52:01 +0000 (+0100) Subject: ramips: fix leds on GL.iNet GL-MT300N-V2 X-Git-Tag: v18.06.2~270 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1cd945ea2289f5b6047351da09d8cc2338bb002d;p=openwrt%2Fstaging%2Fchunkeey.git ramips: fix leds on GL.iNet GL-MT300N-V2 The WAN LED now shows the link state. It's color is green, not blue. Signed-off-by: Martin Weinelt (cherry picked from commit 0411813c6f0520dea23a1c4f58f5956c504bf129) --- 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 54504c6ee8..6057275978 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -210,6 +210,7 @@ gl-mt750) ;; gl-mt300n-v2) set_wifi_led "$boardname:red:wlan" + ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x1" ;; hc5661|\ hc5661a) diff --git a/target/linux/ramips/dts/GL-MT300N-V2.dts b/target/linux/ramips/dts/GL-MT300N-V2.dts index e99d5578f0..98c9a79633 100644 --- a/target/linux/ramips/dts/GL-MT300N-V2.dts +++ b/target/linux/ramips/dts/GL-MT300N-V2.dts @@ -28,7 +28,7 @@ }; wan { - label = "gl-mt300n-v2:blue:wan"; + label = "gl-mt300n-v2:green:wan"; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; };