aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-05-20 12:23:55 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-05-20 12:25:25 +0200
commit80be798d4a4fa4a3b3413a0a0ff42dd8ac88574d (patch)
tree8ed5c1b10c95a826269d92007d4cf7bea3add8ad
parentcea6631cdf09c577ae87a21bc3b03273a233c17e (diff)
downloadupstream-80be798d4a4fa4a3b3413a0a0ff42dd8ac88574d.tar.gz
upstream-80be798d4a4fa4a3b3413a0a0ff42dd8ac88574d.tar.bz2
upstream-80be798d4a4fa4a3b3413a0a0ff42dd8ac88574d.zip
Revert "base-files: migrate old UCI network bridge ports syntax"
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 <rafal@milecki.pl>
-rw-r--r--package/base-files/files/etc/uci-defaults/11_network-migrate-bridges23
1 files changed, 0 insertions, 23 deletions
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