gluon/patches/openwrt/0011-ramips-fix-leds-on-GL.iNet-GL-MT300N-V2.patch
Matthias Schiffer 7620d41c29
modules: update OpenWrt
0d549271d397 ar71xx: fix TP-Link Archer C7 v5 switch LEDs
dd6d554b2c1e kernel: fix ubifs loosing O_TMPFILE data after power cut
4db74fbd6908 kernel: bump 4.14 to 4.14.81
6f388adef820 kernel: bump 4.9 to 4.9.137
b0d08ec3aef3 sunxi: remove kernel 4.9 support
2018-11-17 16:42:27 +01:00

35 lines
1.2 KiB
Diff

From: Martin Weinelt <hexa@darmstadt.ccc.de>
Date: Fri, 2 Nov 2018 20:52:01 +0100
Subject: 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 <hexa@darmstadt.ccc.de>
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 54504c6ee8bb45db0ffa371ec68c3a8fd7e4d673..6057275978591192e3b7799a8e6d97761c3e23a5 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 e99d5578f05bbaf82917878b87eb973a8323198c..98c9a796330068b36df5946f4a428e1b324594f8 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>;
};