55aac8463f
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>
22 lines
308 B
Plaintext
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
|