From: David SantamarĂ­a Rogado Date: Thu, 23 May 2019 21:38:07 +0000 (+0200) Subject: ath79: add leds migrations for archer-c7-v2 and v4 X-Git-Tag: v19.07.0-rc1~541 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d6da056836aa017e1006ff8dd463dfd5d7341df;p=oweals%2Fopenwrt.git ath79: add leds migrations for archer-c7-v2 and v4 In ar71xx v2 has blue color defined because the same mach-*.c is also used for TL-WDR4900 model with blue leds. ath79 v2 dts defines them as green. For v4 the situation is the same as v5 so the conversion is identical only v4 instead v5. So now upgrading from ar71xx to ath79 should be also smoother for v2 and v4. Signed-off-by: David SantamarĂ­a Rogado --- 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 fe4a9c3cc0..bc40d22c09 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,12 @@ case "$board" in engenius,epg5000) migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g" ;; +tplink,archer-c7-v2) + migrate_leds ":blue:=:green:" + ;; +tplink,archer-c7-v4) + migrate_leds "archer-c7-v4:=tp-link:" + ;; tplink,archer-c7-v5) migrate_leds "archer-c7-v5:=tp-link:" ;;