summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm63xx/base-files')
-rw-r--r--target/linux/brcm63xx/base-files/etc/defconfig/generic/network (renamed from target/linux/brcm63xx/base-files/etc/config/network)1
-rwxr-xr-xtarget/linux/brcm63xx/base-files/etc/init.d/defconfig18
2 files changed, 18 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/base-files/etc/config/network b/target/linux/brcm63xx/base-files/etc/defconfig/generic/network
index c15fdd81b..bc2c69b7c 100644
--- a/target/linux/brcm63xx/base-files/etc/config/network
+++ b/target/linux/brcm63xx/base-files/etc/defconfig/generic/network
@@ -12,7 +12,6 @@ config interface lan
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
- option nat 1
config interface wan
option ifname eth0
diff --git a/target/linux/brcm63xx/base-files/etc/init.d/defconfig b/target/linux/brcm63xx/base-files/etc/init.d/defconfig
new file mode 100755
index 000000000..dac9c2344
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/etc/init.d/defconfig
@@ -0,0 +1,18 @@
+#!/bin/sh /etc/rc.common
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+
+START=05
+
+start() {
+ local board=$(awk 'BEGIN{FS="[ \t:/]+"} /system type/ {print $4}' /proc/cpuinfo)
+
+ [ ! -d /etc/defconfig/$board ] && board="generic"
+
+ for f in $( ls /etc/defconfig/$board ); do
+ if [ ! -e /etc/config/$f ]; then
+ cp /etc/defconfig/$board/$f /etc/config/
+ fi
+ done
+}