Lines Matching refs:lan_mac
248 local lan_mac=""
254 lan_mac=$(cat /sys/class/net/eth0/address)
277 lan_mac=$(cat /sys/class/net/eth0/address)
278 lan_mac=$(macaddr_setbit_la "$lan_mac")
279 wan_mac=$(macaddr_add "$lan_mac" 1)
282 lan_mac=$(cat /sys/class/net/eth0/address)
287 lan_mac=$(mtd_get_mac_ascii nvram lanmac)
291 lan_mac=$(mtd_get_mac_ascii factory lanmac)
298 lan_mac=`mtd_get_mac_ascii bdinfo "Vfac_mac "`
299 [ -n "$lan_mac" ] || lan_mac=$(cat /sys/class/net/eth0/address)
300 wan_mac=$(macaddr_add "$lan_mac" 1)
305 lan_mac=$(mtd_get_mac_binary factory 46)
311 lan_mac=$(cat /sys/class/net/eth0/address)
312 lan_mac=$(macaddr_add "$lan_mac" -2)
315 lan_mac=$(mtd_get_mac_binary factory 40)
319 lan_mac=$(cat /sys/class/net/eth0/address)
320 lan_mac=$(macaddr_setbit_la "$lan_mac")
327 lan_mac=$(cat /sys/class/net/eth0/address)
328 wan_mac=$(macaddr_add "$lan_mac" 3)
331 lan_mac=$(cat /sys/class/net/eth0/address)
332 wan_mac=$(macaddr_add "$lan_mac" 4)
335 lan_mac=$(mtd_get_mac_ascii u-boot-env LAN_MAC_ADDR)
339 lan_mac=$(cat /sys/class/net/eth0/address)
340 wan_mac=$(macaddr_add "$lan_mac" 5)
350 lan_mac=$wan_mac
353 lan_mac=$(mtd_get_mac_binary factory 4)
359 lan_mac=$wan_mac
362 lan_mac=$(cat /sys/class/net/eth0/address)
363 wan_mac=$(macaddr_add "$lan_mac" 1)
367 [ -n "$lan_mac" ] && ucidef_set_interface_macaddr lan $lan_mac