ath79: add LED migration for several Archer Cxx devices

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>
master
Adrian Schmutzler 2019-09-17 14:43:00 +02:00 committed by John Crispin
parent 6b0eb84336
commit 53e6cc7a81
1 changed files with 9 additions and 3 deletions

View File

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