From 976f789aba266bf9c9b86fc8cf15b95c51b344a2 Mon Sep 17 00:00:00 2001 From: jow Date: Fri, 28 May 2010 00:59:19 +0000 Subject: [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 --- package/base-files/files/lib/network/config.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/base-files/files/lib') diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index 32170bb27..37dc2085f 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -170,6 +170,8 @@ prepare_interface() { # result in another setup_interface() call, so we simply stop processing # 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 return 1 } -- cgit v1.2.3