mvebu: add support for Buffalo LinkStation LS421DE
[openwrt/staging/wigyori.git] / target / linux / mvebu / cortexa9 / base-files / lib / preinit / 06_set_iface_mac
index fd41836c8d4a4d60e0e136443b317eeab69284e3..62ce2653a0ba236796a9e2c8693ed9630ce4caf6 100644 (file)
@@ -9,6 +9,10 @@ preinit_set_mac_address() {
        . /lib/functions.sh
 
        case $(board_name) in
+       buffalo,ls421de)
+               mac=$(mtd_get_mac_ascii u-boot-env eth1addr)
+               ip link set dev eth0 address $mac 2>/dev/null
+               ;;
        linksys,caiman|linksys,cobra|linksys,rango|linksys,shelby|linksys,venom)
                # rename interfaces back to the way they were with 4.4
                case "$(readlink /sys/class/net/eth0)" in