summaryrefslogtreecommitdiff
path: root/package/base-files/files/lib/network/config.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-03-24 23:42:09 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-03-24 23:42:09 +0000
commit7e6c947e4b2d3332846d3ae091c884d3abe654b6 (patch)
tree82ca1378641500e5f514976a1fe1afa049dc1414 /package/base-files/files/lib/network/config.sh
parent28b9fea4e759470fd3e1f285b228b7101b15b18b (diff)
downloadmtk-20170518-7e6c947e4b2d3332846d3ae091c884d3abe654b6.zip
mtk-20170518-7e6c947e4b2d3332846d3ae091c884d3abe654b6.tar.gz
mtk-20170518-7e6c947e4b2d3332846d3ae091c884d3abe654b6.tar.bz2
sync macs with vif bssids in broadcom.sh, fixes multi-ssid with wpa
SVN-Revision: 15028
Diffstat (limited to 'package/base-files/files/lib/network/config.sh')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index 9b43205..29b7fe5 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -231,6 +231,7 @@ setup_interface() {
# Interface settings
config_get mtu "$config" mtu
config_get macaddr "$config" macaddr
+ macaddr="${macaddr:-$3}"
grep "$iface:" /proc/net/dev > /dev/null && \
$DEBUG ifconfig "$iface" down && \
$DEBUG ifconfig "$iface" ${macaddr:+hw ether "$macaddr"} ${mtu:+mtu $mtu} up