projects
/
openwrt
/
staging
/
mans0n.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5399ba9
)
when changing the mac address of a bridge interface, keep member interface addresses...
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 27 May 2010 14:04:28 +0000
(14:04 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 27 May 2010 14:04:28 +0000
(14:04 +0000)
SVN-Revision: 21577
package/base-files/files/lib/network/config.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/network/config.sh
b/package/base-files/files/lib/network/config.sh
index 1a77145f5a132853a1b13e62972861c99975cce0..32170bb274a3f79c20f2c55393abdd2f3ae8a84c 100755
(executable)
--- a/
package/base-files/files/lib/network/config.sh
+++ b/
package/base-files/files/lib/network/config.sh
@@
-144,6
+144,8
@@
prepare_interface() {
config_get iftype "$config" type
case "$iftype" in
bridge)
+ local macaddr
+ config_get macaddr "$config" macaddr
[ -x /usr/sbin/brctl ] && {
ifconfig "br-$config" 2>/dev/null >/dev/null && {
local newdevs devices
@@
-168,7
+170,7
@@
prepare_interface() {
# result in another setup_interface() call, so we simply stop processing
# the current event at this point.
}
- ifconfig "$iface" up 2>/dev/null >/dev/null
+ ifconfig "$iface"
${macaddr:+hw ether "${macaddr}"}
up 2>/dev/null >/dev/null
return 1
}
;;