Просмотр исходного кода

ath79: add leds migrations for archer-c7-v5

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 <[email protected]>
Signed-off-by: Petr Štetiar <[email protected]>
Petr Štetiar 6 лет назад
Родитель
Сommit
4318bba0e9
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      target/linux/ath79/base-files/etc/uci-defaults/04_led_migration

+ 3 - 0
target/linux/ath79/base-files/etc/uci-defaults/04_led_migration

@@ -9,6 +9,9 @@ case "$board" in
 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