ath79: add leds migrations for archer-c7-v5
authorPetr Štetiar <ynezz@true.cz>
Fri, 17 May 2019 11:52:20 +0000 (13:52 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 20 May 2019 19:19:48 +0000 (21:19 +0200)
ar71xx uses `archer-c7-v5` for led prefix, but ath79 sticks to more
generic `tplink` as the DTS is reused by more boards, so we need to
perform migrations of the LED names during upgrade.

Cc: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/ath79/base-files/etc/uci-defaults/04_led_migration

index 2ca87ccb34d547e4ef2c754afbe1f7c306a2f1ed..d9c61f8103487f34c28128e81c079331f1d5b7b4 100644 (file)
@@ -9,6 +9,9 @@ case "$board" in
 engenius,epg5000)
        migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
        ;;
 engenius,epg5000)
        migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
        ;;
+tplink,archer-c7-v5)
+       migrate_leds "archer-c7-v5:=tp-link:"
+       ;;
 esac
 
 migrations_apply system
 esac
 
 migrations_apply system