Skip to content
Snippets Groups Projects
Commit 4af1b51e authored by John Crispin's avatar John Crispin
Browse files

ramips: extract default lan_mac from eth0


The default case of ramips_setup_macs() is useful when mtd-mac-address is defined in dts.
But lan_mac is not set by default, this results in lan and wan having the same mac.

Signed-off-by: default avatarRoman Yeryomin <roman@advem.lv>

SVN-Revision: 41632
parent 1d11ffa4
No related branches found
No related tags found
No related merge requests found
......@@ -258,6 +258,7 @@ ramips_setup_macs()
;;
*)
lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment