ath79: engenius epg5000: add leds migration script
authorTomasz Maciej Nowak <tomek_n@o2.pl>
Thu, 21 Mar 2019 17:03:39 +0000 (18:03 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 6 Apr 2019 17:14:05 +0000 (19:14 +0200)
commitbac2c4d2fbbcee05ca321d0c0c0caa910b19a4c4
tree9528df0f64771a2c4d6f20d9d2ca90ee4e0dda70
parentafef17e24de61278cfe120d9b278907ac98b6a73
ath79: engenius epg5000: add leds migration script

With transition from ar71xx to ath79 some of devices change their naming
of LEDs. When upgrading from ar71xx target images this will require the
user to adjust previously working configuration. This commit adds
migration script which can be used to rename old names to new ones.
With this previously working configuration will be automatically
adjusted, wihtout user intervention.

This commit adds migration case for EnGenius EPG5000, the wireless LEDs
names have changed from epg5000:blue:wlan2-g and epg5000:blue:wlan-5g to
epg5000:blue:wlan2g and epg5000:blue:wlan5g.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
target/linux/ath79/base-files/etc/uci-defaults/04_led_migration [new file with mode: 0644]