summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib/preinit
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-08-01 14:30:53 +0000
committerJohn Crispin <john@openwrt.org>2013-08-01 14:30:53 +0000
commit23d3b705df405e36b07253f9d16f2fb7757f03f0 (patch)
tree881c9b7f84d81e8243c57dae99eab1ef1fd6ace4 /target/linux/ramips/base-files/lib/preinit
parentaaedf6c8c612d0a561c91fd0f11631ff7e9576b1 (diff)
downloadmaster-31e0f0ae-23d3b705df405e36b07253f9d16f2fb7757f03f0.tar.gz
master-31e0f0ae-23d3b705df405e36b07253f9d16f2fb7757f03f0.tar.bz2
master-31e0f0ae-23d3b705df405e36b07253f9d16f2fb7757f03f0.zip
ramips: add Poray M3 support
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> SVN-Revision: 37636
Diffstat (limited to 'target/linux/ramips/base-files/lib/preinit')
-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