From 80be798d4a4fa4a3b3413a0a0ff42dd8ac88574d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Thu, 20 May 2021 12:23:55 +0200 Subject: Revert "base-files: migrate old UCI network bridge ports syntax" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit f716c30241d5fd9d821560f58d0af0c3ffe78600. Migrating everyone to the new syntax could break downgrades. We may reintroduce it way later if needed. Signed-off-by: Rafał Miłecki --- .../etc/uci-defaults/11_network-migrate-bridges | 23 ---------------------- 1 file changed, 23 deletions(-) delete mode 100644 package/base-files/files/etc/uci-defaults/11_network-migrate-bridges (limited to 'package/base-files/files/etc') diff --git a/package/base-files/files/etc/uci-defaults/11_network-migrate-bridges b/package/base-files/files/etc/uci-defaults/11_network-migrate-bridges deleted file mode 100644 index 745648531f..0000000000 --- a/package/base-files/files/etc/uci-defaults/11_network-migrate-bridges +++ /dev/null @@ -1,23 +0,0 @@ -. /lib/functions.sh - -migrate_ports() { - local config="$1" - local type ports ifname - - config_get type "$config" type - [ "$type" != "bridge" ] && return - - config_get ports "$config" ports - [ -n "$ports" ] && return - - config_get ifname "$config" ifname - [ -z "$ifname" ] && return - - for port in $ifname; do uci add_list network.$config.ports="$port"; done - uci delete network.$config.ifname -} - -config_load network -config_foreach migrate_ports device - -exit 1 -- cgit v1.2.3