ramips: add support for Planex VR500.
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 7eab5f286a1aee4a6efa6c39dfbeea24a052a57b..99c90e4590b55b457a5e92787c8ba964eacbfe0f 100755 (executable)
@@ -24,7 +24,7 @@ ramips_setup_rt3x5x_vlans()
                        lanports="$port:lan $lanports"
                fi
        done
-       ucidef_add_switch "rt305x" $lanports $wanports "6@eth0"
+       ucidef_add_switch "rt305x" $lanports $wanports "6t@eth0"
 }
 
 ramips_setup_interfaces()
@@ -58,7 +58,6 @@ ramips_setup_interfaces()
                ucidef_add_switch_attr "switch0" "enable" "false"
                ucidef_set_interface_lan "eth0"
                ;;
-       3g-6200nl|\
        mlw221|\
        mr-102n)
                ucidef_set_interface_lan "eth0.2"
@@ -86,6 +85,7 @@ ramips_setup_interfaces()
        psg1218|\
        sap-g3200u3|\
        sk-wb8|\
+       vr500|\
        wf-2881|\
        whr-300hp2|\
        whr-600d|\
@@ -355,6 +355,10 @@ ramips_setup_macs()
                lan_mac=$(mtd_get_mac_ascii u-boot-env LAN_MAC_ADDR)
                wan_mac=$(mtd_get_mac_ascii u-boot-env WAN_MAC_ADDR)
                ;;
+       vr500)
+               lan_mac=$(mtd_get_mac_binary factory 57344)
+               wan_mac=$(mtd_get_mac_binary factory 57350)
+               ;;
        w306r-v20)
                lan_mac=$(cat /sys/class/net/eth0/address)
                wan_mac=$(macaddr_add "$lan_mac" 5)