Openwrt/target/linux/bcm63xx/base-files/etc/uci-defaults/04_led_migration
Adrian Schmutzler 55aac8463f bcm63xx: remove model name from LED labels
Like in the previous patches for various targets, this will remove
the "devicename" from LED labels in bcm63xx, as it's useless and
only creates complexity.

The devicename is removed in DTS files and 01_leds, merging
several cases on the way. A migration script is added for
existing configurations.

Note that a few labels were using "model::function" scheme without
color specified, those were converting to just "function" and the
necessary migrations were added to the migration script.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-10 19:44:02 +02:00

22 lines
308 B
Plaintext

. /lib/functions/migrations.sh
board=$(board_name)
case "$board" in
brcm,bcm96318ref-p300|\
brcm,bcm963281tan|\
brcm,bcm96328avng|\
d-link,dsl-2640b-b|\
d-link,dva-g3810bn-tl|\
netgear,dg834g-v4|\
usrobotics,usr9108)
migrate_leds "^.*::="
;;
esac
remove_devicename_leds
migrations_apply system
exit 0