2 # Copyright (C) 2009 OpenWrt.org
7 tew632brp_init_mac_address() {
10 mtd=$(grep config /proc/mtd | cut -d: -f1)
13 mac=$(grep lan_mac /dev/$mtd | cut -d= -f2)
14 [ ! -z $mac ] && ifconfig eth0 hw ether $mac 2>/dev/null
16 mac=$(grep wan_mac /dev/$mtd | cut -d= -f2)
17 [ ! -z $mac ] && ifconfig eth1 hw ether $mac 2>/dev/null
20 case $(ar71xx_board_name) in
22 tew632brp_init_mac_address