1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-09 16:06:15 +02:00
openwrt-xburst/target/linux/brcm63xx/base-files/etc/init.d/defconfig
jogo acbbcb35b8 bcm63xx: move the board name workaround to /lib/brcm63xx.sh
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31872 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-27 13:22:11 +00:00

19 lines
312 B
Bash
Executable File

#!/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
}