Browse Source

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: Roman Yeryomin <[email protected]>

SVN-Revision: 41632
John Crispin 11 years ago
parent
commit
4af1b51ec3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      target/linux/ramips/base-files/etc/uci-defaults/02_network

+ 1 - 0
target/linux/ramips/base-files/etc/uci-defaults/02_network

@@ -258,6 +258,7 @@ ramips_setup_macs()
 		;;
 
 	*)
+		lan_mac=$(cat /sys/class/net/eth0/address)
 		wan_mac=$(macaddr_add "$lan_mac" 1)
 		;;