ramips: add support for D-Link DWR-116-A1/2
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 20ecf1a..d20b0aa 100755 (executable)
@@ -80,6 +80,7 @@ ramips_setup_interfaces()
        dir-320-b1|\
        dir-610-a1|\
        dir-615-h1|\
+       dlink,dwr-116-a1|\
        ew1200|\
        firewrt|\
        hc5661a|\
@@ -428,6 +429,10 @@ ramips_setup_macs()
                lan_mac=$(mtd_get_mac_ascii factory lanmac)
                wan_mac=$(mtd_get_mac_ascii factory wanmac)
                ;;
+       dlink,dwr-116-a1)
+               wan_mac=$(jboot_config_read -m -i $(find_mtd_part "config") -o 0xE000)
+               lan_mac=$(macaddr_add "$wan_mac" 1)
+               ;;
        e1700)
                wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
                ;;