projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
932b4bd
)
[backfire] merge r21595
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 28 May 2010 00:59:51 +0000
(
00:59
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 28 May 2010 00:59:51 +0000
(
00:59
+0000)
SVN-Revision: 21596
package/base-files/files/lib/network/config.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/network/config.sh
b/package/base-files/files/lib/network/config.sh
index 32170bb274a3f79c20f2c55393abdd2f3ae8a84c..37dc2085fbcc5a58b107e8a256db8af35fb68b17 100755
(executable)
--- 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
}