ath79: add support for D-Link DAP-2695-A1
[oweals/openwrt.git] / target / linux / ath79 / generic / base-files / lib / preinit / 10_fix_eth_mac.sh
index da1583a82513059753df296bd80ee30a00c6580c..59fd36b2e9a9c6eeba4225dc76be57451a384701 100644 (file)
@@ -8,6 +8,10 @@ preinit_set_mac_address() {
        avm,fritz450e)
                ip link set dev eth0 address $(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
                ;;
+       dlink,dap-2695-a1)
+               ip link set dev eth0 address $(mtd_get_mac_ascii bdcfg "lanmac")
+               ip link set dev eth1 address $(mtd_get_mac_ascii bdcfg "wanmac")
+               ;;
        enterasys,ws-ap3705i)
                ip link set dev eth0 address $(mtd_get_mac_ascii u-boot-env0 ethaddr)
                ;;