[package] base-files: bring bridge port iface down before changing the mac (#7111)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21595 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Jo-Philipp Wich 2010-05-28 00:59:19 +00:00
parent 9d9ee7c9df
commit 97d22ab94a
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,8 @@ 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.
} }
[ -n "$macaddr" ] && ifconfig "$iface" down 2>/dev/null >/dev/null
ifconfig "$iface" ${macaddr:+hw ether "${macaddr}"} up 2>/dev/null >/dev/null ifconfig "$iface" ${macaddr:+hw ether "${macaddr}"} up 2>/dev/null >/dev/null
return 1 return 1
} }