aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-12-15 22:25:38 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-12-15 22:25:38 +0000
commite5d5ffcbc26c308f6b3cf5506c5161e4a67a45a3 (patch)
tree133d6933c6cd72ddec539fffa6232cc82c741c37 /target/linux/ar71xx/base-files
parent10a219ed6605ee83391fb318a8acaf282b7783d6 (diff)
downloadupstream-e5d5ffcbc26c308f6b3cf5506c5161e4a67a45a3.tar.gz
upstream-e5d5ffcbc26c308f6b3cf5506c5161e4a67a45a3.tar.bz2
upstream-e5d5ffcbc26c308f6b3cf5506c5161e4a67a45a3.zip
ar71xx: connect GMAC0 to the internal switch on DB120
Because the external switch has no driver yet, connect GMAC0 to the PHY4 of the internal switch for now. This allows to use the DB120 board as a router with 4LAN+1WAN ports. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29557 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/network6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/network
index f9419b9866..c35df463f3 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/network
@@ -19,6 +19,12 @@ all0258n)
ucidef_set_interface_lan "eth0 eth1"
;;
+db120)
+ ucidef_set_interfaces_lan_wan "eth1" "eth0"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
+ ;;
+
dir-825-b1)
ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
ucidef_add_switch "rtl8366s" "1" "1"