summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-08-01 14:30:53 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-08-01 14:30:53 +0000
commit489deea3fa726eabbb96a1b3b6ca79bf6111a57a (patch)
treeadf19cfc5d2ec253fd7f6927f3168341b60cfcc8 /target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
parent9022ccd275f1e6d047f282d3daca247318fd7b00 (diff)
ramips: add Poray M3 support
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37636 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/lib/preinit/06_set_iface_mac')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
index aacec25fe3..86c19b0b81 100644
--- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
+++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
@@ -75,6 +75,11 @@ preinit_set_mac_address() {
mac=$(mtd_get_mac_binary factory 40)
ifconfig eth0 hw ether $mac 2>/dev/null
;;
+ m3)
+ mac=$(mtd_get_mac_binary factory 4)
+ mac=$(macaddr_add "$mac" -1)
+ ifconfig eth0 hw ether $mac 2>/dev/null
+ ;;
wl341v3)
mac=$(mtd_get_mac_binary board-nvram 65440)
ifconfig eth0 hw ether $mac 2>/dev/null