mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[backfire] backport bridge fix from r21577
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@21581 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -144,6 +144,8 @@ prepare_interface() {
|
|||||||
config_get iftype "$config" type
|
config_get iftype "$config" type
|
||||||
case "$iftype" in
|
case "$iftype" in
|
||||||
bridge)
|
bridge)
|
||||||
|
local macaddr
|
||||||
|
config_get macaddr "$config" macaddr
|
||||||
[ -x /usr/sbin/brctl ] && {
|
[ -x /usr/sbin/brctl ] && {
|
||||||
ifconfig "br-$config" 2>/dev/null >/dev/null && {
|
ifconfig "br-$config" 2>/dev/null >/dev/null && {
|
||||||
local newdevs devices
|
local newdevs devices
|
||||||
@@ -168,7 +170,7 @@ prepare_interface() {
|
|||||||
# result in another setup_interface() call, so we simply stop processing
|
# result in another setup_interface() call, so we simply stop processing
|
||||||
# the current event at this point.
|
# 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
|
return 1
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user