diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-09-30 20:49:57 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-10-08 20:21:18 +0200 |
commit | c3319322b2eec0769a380a14094c3c7482387a03 (patch) | |
tree | 366c15ae869fa29e82a0623cb75c70759e5ab835 /target/linux/lantiq/xway_legacy | |
parent | c4beac9ea2e1b568d99800fce921eaf269c42361 (diff) | |
download | upstream-c3319322b2eec0769a380a14094c3c7482387a03.tar.gz upstream-c3319322b2eec0769a380a14094c3c7482387a03.tar.bz2 upstream-c3319322b2eec0769a380a14094c3c7482387a03.zip |
lantiq: remove model name from LED labels
Like in the previous patches for other targets, this will remove
the "devicename" from LED labels in lantiq.
The devicename is removed in DTS files and 01_leds, consolidation
of definitions into DTSI files is done where (easily) possible,
and migration scripts are updated. The DTS/DTSI consolidation is
only performed for files-5.4.
For lantiq,easy98020 some LED definitions have the form
"devicename:function" without the color, so we need to implement
explicit migration for that one.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/lantiq/xway_legacy')
-rwxr-xr-x | target/linux/lantiq/xway_legacy/base-files/etc/board.d/01_leds | 2 | ||||
-rw-r--r-- | target/linux/lantiq/xway_legacy/base-files/etc/uci-defaults/01_led_migration | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/lantiq/xway_legacy/base-files/etc/board.d/01_leds b/target/linux/lantiq/xway_legacy/base-files/etc/board.d/01_leds index 4200dcb0c8..d82187de15 100755 --- a/target/linux/lantiq/xway_legacy/base-files/etc/board.d/01_leds +++ b/target/linux/lantiq/xway_legacy/base-files/etc/board.d/01_leds @@ -32,7 +32,7 @@ board=$(board_name) case "$board" in arcadyan,arv4525pw) - ucidef_set_led_netdev "wifi" "wifi" "arv4525pw:green:wlan" "wlan0" + ucidef_set_led_netdev "wifi" "wifi" "green:wlan" "wlan0" ;; esac diff --git a/target/linux/lantiq/xway_legacy/base-files/etc/uci-defaults/01_led_migration b/target/linux/lantiq/xway_legacy/base-files/etc/uci-defaults/01_led_migration index 18bf6a3f96..7011e06272 100644 --- a/target/linux/lantiq/xway_legacy/base-files/etc/uci-defaults/01_led_migration +++ b/target/linux/lantiq/xway_legacy/base-files/etc/uci-defaults/01_led_migration @@ -23,6 +23,8 @@ arcadyan,arv452cqw) ;; esac +remove_devicename_leds + migrations_apply system exit 0 |