[OpenWrt-Devel] [PATCH] ath79: Add GL.iNet GL-AR300M Family to /etc/board.d/01_leds

Jeff Kletsky lede at allycomm.com
Sat Mar 2 12:01:50 EST 2019

From: Jeff Kletsky <git-commits at allycomm.com>

Previously missing, add the three variants;
-nand, -nor, -lite to the definitions in 01_leds

-Lite variant uses language-independent Ethernet
as its single port may be configured as WAN or LAN,
depending use case.

Non-lite variants thanks to Andreas Ziegler

Runtime-tested: GL.iNet AR300M-Lite

Signed-off-by: Jeff Kletsky <git-commits at allycomm.com>
 target/linux/ath79/base-files/etc/board.d/01_leds | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds
index a56fe58f76..a5c23e1f84 100755
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -63,6 +63,13 @@ glinet,gl-ar150)
 	ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
 	ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x02"
+	ucidef_set_led_netdev "lan" "LAN" "gl-ar300m:green:wan" "eth0"
+	;;
+	ucidef_set_led_netdev "ethernet" "Ethernet" "gl-ar300m-lite:green:wan" "eth0"
+	;;
 	ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list