aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-05-24 07:46:12 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-05-24 07:48:17 +0200
commit7a90ad3c431031191afe51b163bf97d3ec820d54 (patch)
tree1a899ffbea43351322c0c27e82ac777ce27d7932 /package/base-files
parent1903233f2b312caf87aa369cd325d9689c45a1c6 (diff)
downloadupstream-7a90ad3c431031191afe51b163bf97d3ec820d54.tar.gz
upstream-7a90ad3c431031191afe51b163bf97d3ec820d54.tar.bz2
upstream-7a90ad3c431031191afe51b163bf97d3ec820d54.zip
base-files: support setting bridge MAC address
Fixes: 43fc720657c6 ("base-files: generate "device" UCI type section for bridge") Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/bin/config_generate2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate
index efcd734242..604c49a709 100755
--- a/package/base-files/files/bin/config_generate
+++ b/package/base-files/files/bin/config_generate
@@ -114,10 +114,12 @@ generate_network() {
add network device
set network.@device[-1].name='br-$1'
set network.@device[-1].type='bridge'
+ set network.@device[-1].macaddr='$macaddr'
EOF
for port in $ports; do uci add_list network.@device[-1].ports="$port"; done
ifname=br-$1
type=
+ macaddr=""
}
[ -n "$bridge" ] && {