summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files/etc/init.d/defconfig
blob: a49c32785da340b306eb03c1a5826f4ca80e016f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}