ramips: add support for I-O DATA WNPR2600G
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 981d6c2..d485010 100755 (executable)
@@ -242,6 +242,7 @@ ramips_setup_interfaces()
        huawei,hg255d|\
        iodata,wn-ax1167gr|\
        iodata,wn-gx300gr|\
+       iodata,wnpr2600g|\
        iptime,a604m)
                ucidef_add_switch "switch0" \
                        "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0"
@@ -670,6 +671,10 @@ ramips_setup_macs()
        trendnet,tew-692gr)
                wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1)
                ;;
+       iodata,wnpr2600g)
+               wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
+               label_mac=$wan_mac
+               ;;
        iptime,a3|\
        iptime,a604m)
                wan_mac=$(mtd_get_mac_binary u-boot 0x1fc40)