[openwrt/openwrt] lantiq: Remove legacy LED migration script

LEDE Commits lede-commits at lists.infradead.org
Fri Dec 27 02:22:32 PST 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c71a27f4d63d9e5dbb491b9493bbc572797ca154

commit c71a27f4d63d9e5dbb491b9493bbc572797ca154
Author: Mustafa Can Elmacı <mustafacan at elmaci.net>
AuthorDate: Thu Dec 26 12:50:55 2024 +0300

    lantiq: Remove legacy LED migration script
    
    This script was rendered obsolete after xrx200 target switched to DSA and
    breaking config migration from old releases to 22.03.
    
    Signed-off-by: Mustafa Can Elmacı <mustafacan at elmaci.net>
    Link: https://github.com/openwrt/openwrt/pull/17383
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 .../base-files/etc/uci-defaults/01_led_migration   | 32 ----------------------
 .../base-files/etc/uci-defaults/01_led_migration   | 31 ---------------------
 2 files changed, 63 deletions(-)

diff --git a/target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration b/target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration
deleted file mode 100644
index e3f6a98149..0000000000
--- a/target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# Copyright (C) 2013 OpenWrt.org
-#
-
-. /lib/functions/migrations.sh
-
-do_internet_led_rename()
-{
-	config_load system
-
-	[ -n $(config_get led_internet name) ] || return
-	[ -z $(config_get led_dsl name) ] || return
-
-	uci rename system.led_internet=led_dsl
-	uci set system.led_dsl.name=dsl
-
-	logger -t led-migration "internet led renamed to dsl"
-}
-
-case "$(board_name)" in
-arcadyan,arv7519rw22|\
-avm,fritz7360sl|\
-bt,homehub-v5a)
-	do_internet_led_rename
-	;;
-esac
-
-remove_devicename_leds
-
-migrations_apply system
-
-exit 0
diff --git a/target/linux/lantiq/xrx200_legacy/base-files/etc/uci-defaults/01_led_migration b/target/linux/lantiq/xrx200_legacy/base-files/etc/uci-defaults/01_led_migration
deleted file mode 100644
index f6f11bc569..0000000000
--- a/target/linux/lantiq/xrx200_legacy/base-files/etc/uci-defaults/01_led_migration
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# Copyright (C) 2013 OpenWrt.org
-#
-
-. /lib/functions/migrations.sh
-
-do_internet_led_rename()
-{
-	config_load system
-
-	[ -n $(config_get led_internet name) ] || return
-	[ -z $(config_get led_dsl name) ] || return
-
-	uci rename system.led_internet=led_dsl
-	uci set system.led_dsl.name=dsl
-
-	logger -t led-migration "internet led renamed to dsl"
-}
-
-case "$(board_name)" in
-alphanetworks,asl56026|\
-arcadyan,vg3503j)
-	do_internet_led_rename
-	;;
-esac
-
-remove_devicename_leds
-
-migrations_apply system
-
-exit 0




More information about the lede-commits mailing list