summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm63xx/base-files/etc')
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN/network29
-rwxr-xr-xtarget/linux/brcm63xx/base-files/etc/init.d/defconfig4
2 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN/network b/target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN/network
new file mode 100644
index 000000000..181ca011c
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/DVAG3810BN/network
@@ -0,0 +1,29 @@
+# Copyright (C) 2008 OpenWrt.org
+
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
+config interface lan
+ option type bridge
+ option ifname eth1.1
+ option proto static
+ option ipaddr 192.168.1.1
+ option netmask 255.255.255.0
+ option nat 1
+
+config interface wan
+ option ifname eth0
+ option proto dhcp
+
+config switch eth1
+ option enable 1
+ option enable_vlan 1
+ option reset 1
+
+config switch_vlan
+ option vlan 1
+ option device eth1
+ option ports "0 1 2 3 5t"
diff --git a/target/linux/brcm63xx/base-files/etc/init.d/defconfig b/target/linux/brcm63xx/base-files/etc/init.d/defconfig
index dac9c2344..8fd783d4d 100755
--- a/target/linux/brcm63xx/base-files/etc/init.d/defconfig
+++ b/target/linux/brcm63xx/base-files/etc/init.d/defconfig
@@ -8,6 +8,10 @@ START=05
start() {
local board=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
+ if [ "$board" = "96358VW" ] && [ -e /proc/switch/eth1/enable ]; then
+ board="DVAG3810BN"
+ fi
+
[ ! -d /etc/defconfig/$board ] && board="generic"
for f in $( ls /etc/defconfig/$board ); do