X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fbase-files%2Fetc%2Fuci-defaults%2F02_network;h=747a83d4541e5098c30e43807af260f7d425d9f6;hp=5fb52bbafd2169094816b4a48ba2cb1af4bfb4a0;hb=4bedb1ac08477917ee4a157be9d35023fb05a238;hpb=5ed3063be15e50fe2927210f749bdb71903b8be1 diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index 5fb52bbafd..747a83d454 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -13,7 +13,6 @@ ramips_setup_rt3x5x_vlans() fi local wanports="" local lanports="" - swconfig dev rt305x set reset 1 for port in 5 4 3 2 1 0; do if [ `swconfig dev rt305x port $port get disable` = "1" ]; then continue @@ -38,14 +37,17 @@ ramips_setup_interfaces() case $board in 3g300m | \ + w150m | \ all0256n | \ all5002 | \ - broadway) + all5003 | \ + broadway | \ + wnce2001) ucidef_add_switch "switch0" "1" "0" ucidef_set_interface_lan "eth0" ;; - dir-615-h1 | \ + 3g-6200nl | \ wl-330n) ucidef_set_interface_lan "eth0.1" ;; @@ -61,6 +63,12 @@ ramips_setup_interfaces() ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ;; + asl26555) + ucidef_set_interface_lan "eth0.1" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t" + ;; + dir-645) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ucidef_add_switch "switch0" "1" "1" @@ -68,6 +76,7 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch0" "2" "0 6t" ;; + dir-615-h1 | \ mzk-w300nh2) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ucidef_add_switch "switch0" "1" "1" @@ -77,6 +86,13 @@ ramips_setup_interfaces() f5d8235-v1 | \ f5d8235-v2 | \ + ur-326n4g) + 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 6t" + ucidef_add_switch_vlan "switch0" "2" "0 6t" + ;; + ur-336un) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ;; @@ -112,11 +128,11 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch0" "2" "0t 5" ;; - freestation5 | \ wcr-150gn) ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1" ;; + d105 | \ omni-emb-hpm|\ wli-tx4-ag300n) ucidef_set_interface_lan "eth0" @@ -147,12 +163,15 @@ ramips_setup_macs() ;; 3g-6200n | \ 3g300m | \ + w150m | \ air3gii | \ argus-atp52b | \ bc2 | \ br6425 | \ broadway | \ + dir-620-d1 | \ f5d8235-v1 | \ + mpr-a2 | \ mzk-w300nh2 | \ nw718 | \ psr-680w | \ @@ -163,6 +182,10 @@ ramips_setup_macs() wan_mac=$(macaddr_add "$lan_mac" 1) ;; + asl26555) + lan_mac=$(mtd_get_mac_binary devdata 16388) + ;; + w306r-v20) lan_mac=$(mtd_get_mac_binary factory 4) wan_mac=$(macaddr_add "$lan_mac" 5) @@ -193,6 +216,7 @@ ramips_setup_macs() ;; esr-9753 | \ + ur-326n4g | \ ur-336un) lan_mac=$(mtd_get_mac_binary devdata 16388) wan_mac=$(macaddr_add "$lan_mac" 1) @@ -230,7 +254,9 @@ ramips_setup_macs() all0239-3g | \ carambola | \ - w502u) + freestation5 | \ + w502u | \ + wnce2001) lan_mac=$(mtd_get_mac_binary factory 40) wan_mac=$(mtd_get_mac_binary factory 46) ;; @@ -240,6 +266,7 @@ ramips_setup_macs() wan_mac=$(macaddr_add "$lan_mac" 1) ;; + d105 | \ wli-tx4-ag300n) lan_mac=$(mtd_get_mac_binary factory 4) ;;