aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-11-30 08:36:56 +0000
committerJohn Crispin <john@openwrt.org>2013-11-30 08:36:56 +0000
commit2370126b9b5e139e7be753ffb5a44eda7b68e20d (patch)
tree70ef31c644b99185e88cc425f7a216c32cde0a55 /target/linux/ramips
parentf8fe6a090a0baa84bf52dacdad7ee5d8e65f3f1e (diff)
downloadupstream-2370126b9b5e139e7be753ffb5a44eda7b68e20d.tar.gz
upstream-2370126b9b5e139e7be753ffb5a44eda7b68e20d.tar.bz2
upstream-2370126b9b5e139e7be753ffb5a44eda7b68e20d.zip
ramips: Fix initial network configuration for few boards
Argus ATP52B: ethernet didn't work because of unconfigured switch Sparklan WCR150GN: add switch config and make single port to be LAN Dlink DIR-645: seems to be a redundant case Signed-off-by: Roman Yeryomin <roman@advem.lv> SVN-Revision: 38960
Diffstat (limited to 'target/linux/ramips')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network15
1 files changed, 6 insertions, 9 deletions
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 79ad4b885f..63458eda0a 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -56,7 +56,6 @@ ramips_setup_interfaces()
;;
3g-6200n | \
- argus-atp52b | \
b2c | \
nw718 | \
psr-680w | \
@@ -72,13 +71,6 @@ ramips_setup_interfaces()
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"
- ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t"
- ucidef_add_switch_vlan "switch0" "2" "0 6t"
- ;;
-
dir-610-a1 | \
dir-300-b7 | \
dir-320-b1 | \
@@ -90,6 +82,8 @@ ramips_setup_interfaces()
ucidef_add_switch_vlan "switch0" "2" "4 6t"
;;
+ argus-atp52b | \
+ dir-645 | \
f5d8235-v1 | \
f5d8235-v2 | \
hg255d | \
@@ -136,7 +130,10 @@ ramips_setup_interfaces()
;;
wcr-150gn)
- ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1"
+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "0 6t"
+ ucidef_add_switch_vlan "switch0" "2" "6t"
;;
d105 | \