From fc605c01f6d1fd8e2aa8ede83b03ae87f12524a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Mon, 24 May 2021 07:46:12 +0200 Subject: [PATCH] base-files: support setting bridge MAC address MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: 43fc720657c6 ("base-files: generate "device" UCI type section for bridge") Signed-off-by: Rafał Miłecki (cherry picked from commit 7a90ad3c431031191afe51b163bf97d3ec820d54) --- package/base-files/files/bin/config_generate | 2 ++ 1 file changed, 2 insertions(+) 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" ] && { -- 2.30.2