aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/bin
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-27 11:39:15 +0200
commitfc605c01f6d1fd8e2aa8ede83b03ae87f12524a9 (patch)
tree72666fe298a9729031ead271d78d4e671531948e /package/base-files/files/bin
parent0d90023633248791bbeb8d2b21669c1f9a5a9a6a (diff)
downloadupstream-fc605c01f6d1fd8e2aa8ede83b03ae87f12524a9.tar.gz
upstream-fc605c01f6d1fd8e2aa8ede83b03ae87f12524a9.tar.bz2
upstream-fc605c01f6d1fd8e2aa8ede83b03ae87f12524a9.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> (cherry picked from commit 7a90ad3c431031191afe51b163bf97d3ec820d54)
Diffstat (limited to 'package/base-files/files/bin')
-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" ] && {