projects
/
openwrt
/
staging
/
ansuel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1903233
)
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>
Mon, 24 May 2021 05:48:17 +0000
(07:48 +0200)
Fixes: 43fc720657c6 ("base-files: generate "device" UCI type section for bridge")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
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" ] && {