From: Mustafa Can Elmacı Date: Thu, 26 Dec 2024 09:50:55 +0000 (+0300) Subject: lantiq: Remove legacy LED migration script X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c71a27f4d63d9e5dbb491b9493bbc572797ca154;p=openwrt%2Fopenwrt.git 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ı Link: https://github.com/openwrt/openwrt/pull/17383 Signed-off-by: Robert Marko --- 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