[OpenWrt-Devel] [PATCH] ath79: Add LED migration for several Archer Cxx devices

Adrian Schmutzler freifunk at adrianschmutzler.de
Mon Sep 2 05:10:21 EDT 2019


Several Archer Cxx devices were using board-specific LED names in
ar71xx, which were changed to "tp-link:*" in ath79.

This patch adds migration for them.

Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 .../base-files/etc/uci-defaults/04_led_migration  | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration b/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration
index b1afd0ee76..9059b8d5b5 100644
--- a/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration
+++ b/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration
@@ -9,6 +9,21 @@ case "$board" in
 engenius,epg5000)
 	migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
 	;;
+tplink,archer-c25-v1)
+	migrate_leds "^archer-c25-v1:=tp-link:"
+	;;
+tplink,archer-c58-v1)
+	migrate_leds "^archer-c58-v1:=tp-link:"
+	;;
+tplink,archer-c59-v1)
+	migrate_leds "^archer-c59-v1:=tp-link:"
+	;;
+tplink,archer-c60-v1)
+	migrate_leds "^archer-c60-v1:=tp-link:"
+	;;
+tplink,archer-c60-v2)
+	migrate_leds "^archer-c60-v2:=tp-link:"
+	;;
 tplink,archer-c7-v2)
 	migrate_leds ":blue:=:green:"
 	;;
-- 
2.20.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list