From 5c105d9f3fd086aff195d3849dcf847d6b0bd927 Mon Sep 17 00:00:00 2001 From: blogic Date: Fri, 5 Oct 2012 10:12:53 +0000 Subject: branch Attitude Adjustment git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/brcm63xx/base-files/etc/init.d/defconfig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 target/linux/brcm63xx/base-files/etc/init.d/defconfig (limited to 'target/linux/brcm63xx/base-files/etc/init.d') 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..a49c32785 --- /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() { + . /lib/brcm63xx.sh + + [ ! -d /etc/defconfig/$board_name ] && board_name="generic" + + for f in $( ls /etc/defconfig/$board_name ); do + if [ ! -e /etc/config/$f ]; then + cp /etc/defconfig/$board_name/$f /etc/config/ + fi + done +} -- cgit v1.2.3