projects
/
openwrt
/
staging
/
adrian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d90023
)
base-files: support setting bridge MAC address
author
Rafał Miłecki
<rafal@milecki.pl>
Mon, 24 May 2021 05:46:12 +0000
(07:46 +0200)
committer
Rafał Miłecki
<rafal@milecki.pl>
Thu, 27 May 2021 09:39:15 +0000
(11:39 +0200)
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
)
package/base-files/files/bin/config_generate
patch
|
blob
|
history
diff --git
a/package/base-files/files/bin/config_generate
b/package/base-files/files/bin/config_generate
index efcd7342423268ea60a004942c3e4f1f04faf6ad..604c49a7090d670bab9fbd1941cdddb86ac5f014 100755
(executable)
--- 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" ] && {