diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2015-04-16 09:54:39 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2015-04-16 09:54:39 +0000 |
commit | 3ec7a94d57d5b1b75f409a480b7a99f03fddb2a1 (patch) | |
tree | dbaef23d37cd089988cfd4efee53ad7e5ce9e30c /target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac | |
parent | 89b99d117754fb07f0273a5ebdf7f7e3a2fbf1b2 (diff) | |
download | upstream-3ec7a94d57d5b1b75f409a480b7a99f03fddb2a1.tar.gz upstream-3ec7a94d57d5b1b75f409a480b7a99f03fddb2a1.tar.bz2 upstream-3ec7a94d57d5b1b75f409a480b7a99f03fddb2a1.zip |
mvebu: add support for the Linksys Caiman and Cobra
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45456 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac')
-rw-r--r-- | target/linux/mvebu/base-files/lib/preinit/06_set_iface_mac | 8 |
1 files changed, 7 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 7b77bea27f..7217e93370 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 @@ -1,5 +1,5 @@ # -# Copyright (C) 2014 OpenWrt.org +# Copyright (C) 2014-2015 OpenWrt.org # preinit_set_mac_address() { @@ -15,6 +15,12 @@ preinit_set_mac_address() { ifconfig eth0 hw ether $mac 2>/dev/null ifconfig eth1 hw ether $mac_wan 2>/dev/null ;; + armada-385-linksys-caiman|armada-385-linksys-cobra) + mac=$(mtd_get_mac_ascii devinfo hw_mac_addr) + mac_wan=$(macaddr_setbit_la "$mac") + ifconfig eth1 hw ether $mac 2>/dev/null + ifconfig eth0 hw ether $mac_wan 2>/dev/null + ;; esac } |