[openwrt/openwrt] lantiq: move 01_led_migration script to subtargets

LEDE Commits lede-commits at lists.infradead.org
Fri Jul 17 06:15:05 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b78a266888aad6632ccc9eecb04e615f9ce43868

commit b78a266888aad6632ccc9eecb04e615f9ce43868
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Fri Jul 17 12:09:57 2020 +0200

    lantiq: move 01_led_migration script to subtargets
    
    Split the /etc/uci-defaults/01_led_migration scripts into subtargets
    as already done for most of the other base-files.
    
    While this introduces a minor amount of code duplication, it still
    is considered an improvement, as device-specific settings are kept
    together in the subtargets' base-files and the script at hand can be
    removed entirely for two of the subtargets not needing it.
    
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 .../base-files/etc/uci-defaults/01_led_migration         | 10 ----------
 .../base-files/etc/uci-defaults/01_led_migration         |  8 +-------
 .../base-files/etc/uci-defaults/01_led_migration         | 16 +---------------
 3 files changed, 2 insertions(+), 32 deletions(-)

diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration b/target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration
similarity index 70%
copy from target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration
copy to target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration
index 961e39ee61..35903d212c 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration
+++ b/target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration
@@ -19,22 +19,12 @@ do_internet_led_rename()
 
 case "$(board_name)" in
 alphanetworks,asl56026|\
-arcadyan,arv452cqw|\
-arcadyan,arv7510pw22|\
 arcadyan,arv7519rw22|\
-arcadyan,arv752dpw|\
-arcadyan,arv752dpw22|\
 arcadyan,vg3503j|\
 avm,fritz7360sl|\
-bt,homehub-v2b|\
-bt,homehub-v3a|\
 bt,homehub-v5a)
 	do_internet_led_rename
 	;;
-netgear,dgn3500|\
-netgear,dgn3500b)
-	migrate_leds "dgn3500:blue:wireless=dgn3500:green:wireless"
-	;;
 esac
 
 migrations_apply system
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration b/target/linux/lantiq/xway/base-files/etc/uci-defaults/01_led_migration
similarity index 81%
copy from target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration
copy to target/linux/lantiq/xway/base-files/etc/uci-defaults/01_led_migration
index 961e39ee61..0139ef28b5 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration
+++ b/target/linux/lantiq/xway/base-files/etc/uci-defaults/01_led_migration
@@ -18,17 +18,11 @@ do_internet_led_rename()
 }
 
 case "$(board_name)" in
-alphanetworks,asl56026|\
-arcadyan,arv452cqw|\
 arcadyan,arv7510pw22|\
-arcadyan,arv7519rw22|\
 arcadyan,arv752dpw|\
 arcadyan,arv752dpw22|\
-arcadyan,vg3503j|\
-avm,fritz7360sl|\
 bt,homehub-v2b|\
-bt,homehub-v3a|\
-bt,homehub-v5a)
+bt,homehub-v3a)
 	do_internet_led_rename
 	;;
 netgear,dgn3500|\
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration b/target/linux/lantiq/xway_legacy/base-files/etc/uci-defaults/01_led_migration
similarity index 57%
rename from target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration
rename to target/linux/lantiq/xway_legacy/base-files/etc/uci-defaults/01_led_migration
index 961e39ee61..18bf6a3f96 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration
+++ b/target/linux/lantiq/xway_legacy/base-files/etc/uci-defaults/01_led_migration
@@ -18,23 +18,9 @@ do_internet_led_rename()
 }
 
 case "$(board_name)" in
-alphanetworks,asl56026|\
-arcadyan,arv452cqw|\
-arcadyan,arv7510pw22|\
-arcadyan,arv7519rw22|\
-arcadyan,arv752dpw|\
-arcadyan,arv752dpw22|\
-arcadyan,vg3503j|\
-avm,fritz7360sl|\
-bt,homehub-v2b|\
-bt,homehub-v3a|\
-bt,homehub-v5a)
+arcadyan,arv452cqw)
 	do_internet_led_rename
 	;;
-netgear,dgn3500|\
-netgear,dgn3500b)
-	migrate_leds "dgn3500:blue:wireless=dgn3500:green:wireless"
-	;;
 esac
 
 migrations_apply system



More information about the lede-commits mailing list