ath79: use board name in LED migrations
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 21 Oct 2019 14:29:35 +0000 (16:29 +0200)
committerJohn Crispin <john@phrozen.org>
Tue, 22 Oct 2019 09:41:37 +0000 (11:41 +0200)
commit144379e14908fcd9411e3ed6c6cefc238fc4900a
tree96c2f2aefa2783feb1986c70d0d61ae8865ccb27
parent77d8efe80e20da8dfed0139790319356bf94c49a
ath79: use board name in LED migrations

Several devices added to LED migration script will just have their
(old) board name converted to tp-link.

By using a variable for this, the amount of code in the migration
script can be reduced and the chance for typos is reduced.

This patch also introduces the marker for beginning of a pattern
"^" to the regex, so the match is more specific.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit 6b0eb84336edc995f4723f0a005507f158d3e895)
target/linux/ath79/base-files/etc/uci-defaults/04_led_migration