Introduce LED migration script as the names have changed. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com> Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250618170045.473711-8-tmn505@terefe.re/ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
16 lines
273 B
Text
16 lines
273 B
Text
. /lib/functions.sh
|
|
. /lib/functions/migrations.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
compulab,trimslice)
|
|
migrate_leds "trimslice:green:right=green:indicator-2" "trimslice:green:left=green:indicator-3"
|
|
;;
|
|
esac
|
|
|
|
remove_devicename_leds
|
|
|
|
migrations_apply system
|
|
|
|
exit 0
|