ramips: extract default lan_mac from eth0
[openwrt.git] / target / linux / ramips / base-files / etc / uci-defaults / 02_network
index 472ae58..39f46bb 100755 (executable)
@@ -258,6 +258,7 @@ ramips_setup_macs()
                ;;
 
        *)
+               lan_mac=$(cat /sys/class/net/eth0/address)
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;