diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-28 00:59:19 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-28 00:59:19 +0000 |
commit | 482b8385d2c3f225ee0d818e390797e123ffce20 (patch) | |
tree | 68f07294efa092e1bdf461e93111ab659a5af81a /package/base-files/files | |
parent | 8bc961239b089da87a74241cebb60dd1d2ed1a3d (diff) | |
download | upstream-482b8385d2c3f225ee0d818e390797e123ffce20.tar.gz upstream-482b8385d2c3f225ee0d818e390797e123ffce20.tar.bz2 upstream-482b8385d2c3f225ee0d818e390797e123ffce20.zip |
base-files: bring bridge port iface down before changing the mac (#7111)
SVN-Revision: 21595
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index 32170bb274..37dc2085fb 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 } |