lantiq: Remove legacy LED migration script
authorMustafa Can Elmacı <mustafacan@elmaci.net>
Thu, 26 Dec 2024 09:50:55 +0000 (12:50 +0300)
committerRobert Marko <robimarko@gmail.com>
Fri, 27 Dec 2024 10:22:29 +0000 (11:22 +0100)
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@elmaci.net>
Link: https://github.com/openwrt/openwrt/pull/17383
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration [deleted file]
target/linux/lantiq/xrx200_legacy/base-files/etc/uci-defaults/01_led_migration [deleted file]

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 (file)
index e3f6a98..0000000
+++ /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 (file)
index f6f11bc..0000000
+++ /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