aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-05-17 13:52:20 +0200
committerPetr Štetiar <ynezz@true.cz>2019-05-20 21:19:48 +0200
commit4318bba0e94c034064f2ea3bf0a896d940227d66 (patch)
tree688e92bd0d07cad51b1813abffe2bf65d7020470
parent73b21559ced458e562db5abae73990824dd4b6dc (diff)
downloadupstream-4318bba0e94c034064f2ea3bf0a896d940227d66.tar.gz
upstream-4318bba0e94c034064f2ea3bf0a896d940227d66.tar.bz2
upstream-4318bba0e94c034064f2ea3bf0a896d940227d66.zip
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 <freifunk@adrianschmutzler.de> Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--target/linux/ath79/base-files/etc/uci-defaults/04_led_migration3
1 files changed, 3 insertions, 0 deletions
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 2ca87ccb34..d9c61f8103 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,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