From: Felix Fietkau Date: Thu, 27 May 2010 14:07:39 +0000 (+0000) Subject: [backfire] backport bridge fix from r21577 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=eb02a1c40042bd75d6214f6da41166d2681d6dec [backfire] backport bridge fix from r21577 SVN-Revision: 21581 --- diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index 1a77145f5a..32170bb274 100755 --- 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 } ;;