ramips: fix LED labels not updated during device name changes
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 6 Aug 2019 12:30:42 +0000 (14:30 +0200)
committerDavid Bauer <mail@david-bauer.net>
Fri, 9 Aug 2019 22:32:28 +0000 (00:32 +0200)
commitda0de5e007cda0abef442bef860f867033206291
treee7aad18a3a2053332beaaaf2a2e91da80491962d
parentd7c082ba4f7de97b3708d1f4a064954ffc774778
ramips: fix LED labels not updated during device name changes

In commit d93969a13a5b ("ramips: Improve compatible for TP-Link
Archer devices") and subsequent ones, names of several devices
in ramips have been changed.
Since LED names are frequently invoked by $boardname, this has
broken LED setup in 01_leds, as $boardname and prefix in DTS
do not match anymore.

This patch updates device name prefixes for LEDs in DTS files,
and provides a migration script.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
19 files changed:
target/linux/ramips/base-files/etc/uci-defaults/04_led_migration [new file with mode: 0644]
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts
target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts
target/linux/ramips/dts/mt7620a_netgear_wn3000rp-v3.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts
target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts
target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts
target/linux/ramips/dts/mt7620a_youku_yk1.dts
target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts
target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts
target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts
target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts
target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts
target/linux/ramips/dts/rt3052_fon_fonera-20n.dts
target/linux/ramips/dts/rt5350_intenso_memory2move.dts