From c71a27f4d63d9e5dbb491b9493bbc572797ca154 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mustafa=20Can=20Elmac=C4=B1?= Date: Thu, 26 Dec 2024 12:50:55 +0300 Subject: [PATCH] lantiq: Remove legacy LED migration script MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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ı Link: https://github.com/openwrt/openwrt/pull/17383 Signed-off-by: Robert Marko --- .../etc/uci-defaults/01_led_migration | 32 ------------------- .../etc/uci-defaults/01_led_migration | 31 ------------------ 2 files changed, 63 deletions(-) delete mode 100644 target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration delete mode 100644 target/linux/lantiq/xrx200_legacy/base-files/etc/uci-defaults/01_led_migration 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 -- 2.30.2