X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fbase-files%2Fetc%2Fuci-defaults%2Fnetwork;h=81c12de27e7e5b56ae256bbf156b53f845757ce0;hp=a36341ca15b4c0b9239f124158fdd7ca337e1b7e;hb=266880e2028a0e30efa41d525e54fd07c5f69a8f;hpb=62c0190fa570c5258edb639a24a2c949dcc8a88a diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network index a36341ca15..81c12de27e 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/network +++ b/target/linux/ramips/base-files/etc/uci-defaults/network @@ -16,31 +16,35 @@ ramips_setup_interfaces() ucidef_set_interface_loopback case $board in - all0256n) + all0256n | \ + wl-330n) ucidef_set_interface_lan "eth0.1" ;; argus-atp52b | \ b2c | \ nw718 | \ + sl-r7205 | \ w502u | \ wr6202) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ;; f5d8235-v1 | \ - rt-n15) + f5d8235-v2 | \ + v11st-fe) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" - ucidef_add_switch "rtl8366s" "1" "1" - ucidef_add_switch_vlan "rtl8366s" "1" "1 2 3 4 5t" - ucidef_add_switch_vlan "rtl8366s" "2" "0 5t" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5t" + ucidef_add_switch_vlan "switch0" "2" "0 5t" ;; - f5d8235-v2) + rt-n15 | \ + wl-351) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" - ucidef_add_switch "rtl8366rb" "1" "1" - ucidef_add_switch_vlan "rtl8366rb" "1" "1 2 3 4 5t" - ucidef_add_switch_vlan "rtl8366rb" "2" "0 5t" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t" + ucidef_add_switch_vlan "switch0" "2" "4 5t" ;; rt-n56u) @@ -50,22 +54,10 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch0" "2" "4 8t" ;; - v11st-fe) - ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" - ucidef_add_switch "switch0" "1" "1" - ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5t" - ucidef_add_switch_vlan "switch0" "2" "0 5t" - ;; - + freestation5 | \ + w306r-v20 | \ wcr-150gn) - ucidef_set_interface_lan_wan "eth0.2" "eth0.1" - ;; - - wl-351) - ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" - ucidef_add_switch "rtl8366rb" "1" "1" - ucidef_add_switch_vlan "rtl8366rb" "1" "0 1 2 3 5t" - ucidef_add_switch_vlan "rtl8366rb" "2" "4 5t" + ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1" ;; wli-tx4-ag300n) @@ -99,11 +91,17 @@ ramips_setup_macs() f5d8235-v1 | \ nw718 | \ rt-n15 | \ + sl-r7205 | \ wl-351) lan_mac=$(ramips_get_mac_binary factory 4) wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1) ;; + w306r-v20) + lan_mac=$(ramips_get_mac_binary factory 4) + wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 5) + ;; + dir-300-b1 |\ dir-300-b2 |\ dir-600-b1)