[OpenWrt-Devel,v2,2/2] ath79: add LED migration for several Archer Cxx devices
diff mbox series

Message ID 20190917124300.4505-2-freifunk@adrianschmutzler.de
State Accepted
Delegated to: John Crispin
Headers show
Series
  • [OpenWrt-Devel,v2,1/2] ath79: use board name in LED migrations
Related show

Commit Message

Adrian Schmutzler Sept. 17, 2019, 12:43 p.m. UTC
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@adrianschmutzler.de>

---

v2: Added C59v2, use new concept
---
 .../base-files/etc/uci-defaults/04_led_migration     | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Patch
diff mbox series

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 4e4e91c788..b23e5f7db6 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
@@ -10,13 +10,19 @@  case "$board" in
 engenius,epg5000)
 	migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
 	;;
-tplink,archer-c7-v2)
-	migrate_leds ":blue:=:green:"
-	;;
+tplink,archer-c25-v1|\
+tplink,archer-c58-v1|\
+tplink,archer-c59-v1|\
+tplink,archer-c59-v2|\
+tplink,archer-c60-v1|\
+tplink,archer-c60-v2|\
 tplink,archer-c7-v4|\
 tplink,archer-c7-v5)
 	migrate_leds "^$boardonly:=tp-link:"
 	;;
+tplink,archer-c7-v2)
+	migrate_leds ":blue:=:green:"
+	;;
 tplink,re355-v1)
 	migrate_leds "re355:=tp-link:"
 	;;