X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fbase-files%2Fetc%2Fuci-defaults%2F02_network;h=6877588a4584e1a71056ecf822db4f7475145584;hb=84a74cfe45da0974e70ccc988207287ffe905855;hp=e28f2b54694e8e9da926fb4a98ce70c07072e1f8;hpb=cb06f20d31cc8776aab0de950b89b77f50eef890;p=openwrt.git 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 e28f2b5469..6877588a45 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 @@ -41,6 +40,8 @@ ramips_setup_interfaces() w150m | \ all0256n | \ all5002 | \ + all5003 | \ + awm002-evb | \ broadway | \ wnce2001) ucidef_add_switch "switch0" "1" "0" @@ -63,6 +64,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" @@ -80,6 +87,7 @@ ramips_setup_interfaces() f5d8235-v1 | \ f5d8235-v2 | \ + hg255d | \ ur-326n4g) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ucidef_add_switch "switch0" "1" "1" @@ -122,7 +130,6 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch0" "2" "0t 5" ;; - freestation5 | \ wcr-150gn) ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1" ;; @@ -164,7 +171,10 @@ ramips_setup_macs() bc2 | \ br6425 | \ broadway | \ + dir-620-d1 | \ f5d8235-v1 | \ + mpr-a1 | \ + mpr-a2 | \ mzk-w300nh2 | \ nw718 | \ psr-680w | \ @@ -175,12 +185,17 @@ 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) ;; rt-n13u | \ + hg255d | \ fonera20n) lan_mac=$(mtd_get_mac_binary factory 40) wan_mac=$(macaddr_add "$lan_mac" 1) @@ -243,6 +258,7 @@ ramips_setup_macs() all0239-3g | \ carambola | \ + freestation5 | \ w502u | \ wnce2001) lan_mac=$(mtd_get_mac_binary factory 40)