diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2015-02-23 10:33:19 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2015-02-23 10:33:19 +0000 |
commit | 42bd368fe8c33c0f9ab6859566716b1c95c8cdb1 (patch) | |
tree | 3f0c6098417962827802ebc98d3deae99cafee8c /target | |
parent | dd8ae0460259ae764e6becfdb4dad91a0d478392 (diff) | |
download | master-187ad058-42bd368fe8c33c0f9ab6859566716b1c95c8cdb1.tar.gz master-187ad058-42bd368fe8c33c0f9ab6859566716b1c95c8cdb1.tar.bz2 master-187ad058-42bd368fe8c33c0f9ab6859566716b1c95c8cdb1.zip |
mvebu: set WRT1900AC WAN interface MAC address
Toggles the LA bit on the WAN interface.
Signed-off-by: Claudio Leite <leitec@staticky.com>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44508 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac b/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac index 30f1370b8f..2b64eda822 100644 --- a/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac +++ b/target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac @@ -11,8 +11,9 @@ preinit_set_mac_address() { case $(mvebu_board_name) in armada-xp-mamba) mac=$(mtd_get_mac_ascii devinfo hw_mac_addr) + mac_wan=$(macaddr_setbit_la "$mac") ifconfig eth0 hw ether $mac 2>/dev/null - ifconfig eth1 hw ether $mac 2>/dev/null + ifconfig eth1 hw ether $mac_wan 2>/dev/null ;; esac } |