diff options
author | Daniel Dickinson <crazycshore@gmail.com> | 2010-11-28 22:04:19 +0000 |
---|---|---|
committer | Daniel Dickinson <crazycshore@gmail.com> | 2010-11-28 22:04:19 +0000 |
commit | b1b318750a87f665b2614cd2baff3921f3d34936 (patch) | |
tree | 77869b0ca9231eb14b23e4224ac9df721d75bcaf /target/linux/brcm63xx/base-files/etc/init.d/defconfig | |
parent | dd5c6a97de2e10df409f826bc949323021d3f678 (diff) | |
download | upstream-b1b318750a87f665b2614cd2baff3921f3d34936.tar.gz upstream-b1b318750a87f665b2614cd2baff3921f3d34936.tar.bz2 upstream-b1b318750a87f665b2614cd2baff3921f3d34936.zip |
bcm63xx: Add defconfigs.
Port the mechanism for different default configurations from ar71xx and
use the old configuration as the default configuration. This should have
no functional differences to before.
While we are at it, remove the obsolete nat option.
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
SVN-Revision: 24185
Diffstat (limited to 'target/linux/brcm63xx/base-files/etc/init.d/defconfig')
-rwxr-xr-x | target/linux/brcm63xx/base-files/etc/init.d/defconfig | 18 |
1 files changed, 18 insertions, 0 deletions
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 0000000000..dac9c23440 --- /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 +} |