Author: blogic Date: 2014-07-14 09:38:23 +0200 (Mon, 14 Jul 2014) New Revision: 41632
Modified: trunk/target/linux/ramips/base-files/etc/uci-defaults/02_network Log: 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]> Modified: trunk/target/linux/ramips/base-files/etc/uci-defaults/02_network =================================================================== --- trunk/target/linux/ramips/base-files/etc/uci-defaults/02_network 2014-07-13 22:15:03 UTC (rev 41631) +++ trunk/target/linux/ramips/base-files/etc/uci-defaults/02_network 2014-07-14 07:38:23 UTC (rev 41632) @@ -258,6 +258,7 @@ ;; *) + lan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(macaddr_add "$lan_mac" 1) ;; _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
