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 <roman@advem.lv>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41632 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
John Crispin 2014-07-14 07:38:23 +00:00
parent 1a065560fb
commit c431856e5c
1 changed files with 1 additions and 0 deletions

View File

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