[source] ar71xx: wpj344: set MAC on wan

LEDE Commits lede-commits at lists.infradead.org
Thu Jun 29 02:19:12 PDT 2017


pepe2k pushed a commit to source.git, branch master:
https://git.lede-project.org/3e12ca2355529e51d50038d06dbac79315470b3d

commit 3e12ca2355529e51d50038d06dbac79315470b3d
Author: Leon M. George <leon at georgemail.eu>
AuthorDate: Fri Jun 9 18:30:47 2017 +0200

    ar71xx: wpj344: set MAC on wan
    
    Signed-off-by: Leon M. George <leon at georgemail.eu>
---
 target/linux/ar71xx/base-files/etc/board.d/02_network | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 9ff6ddd..709030c 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -532,6 +532,9 @@ ar71xx_setup_macs()
 	mynet-n750)
 		wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
 		;;
+	wpj344)
+		wan_mac=$(mtd_get_mac_binary u-boot 0x2e018)
+		;;
 	esac
 
 	[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac



More information about the lede-commits mailing list