ar71xx: add userspace support for WD My Net N750
[openwrt.git] / target / linux / ar71xx / base-files / etc / uci-defaults / 02_network
index ca57fbb..a7eeab0 100755 (executable)
@@ -207,6 +207,16 @@ dir-825-c1)
        [ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac"
        ;;
 
+mynet-n750)
+       local mac
+       ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+       ucidef_add_switch "switch0" "1" "1"
+       ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4"
+       ucidef_add_switch_vlan "switch0" "2" "0t 5"
+       mac=$(mtd_get_mac_ascii devdata "wanmac")
+       [ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac"
+       ;;
+
 dir-835-a1 |\
 wndr4300)
        ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"