2009-02-24 18:16:40 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
#
|
|
|
|
# Copyright (C) 2009 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
. /lib/ar71xx.sh
|
|
|
|
|
|
|
|
START=05
|
|
|
|
|
|
|
|
start() {
|
|
|
|
local board=$(ar71xx_board_name)
|
|
|
|
|
2009-02-26 05:54:07 +00:00
|
|
|
[ ! -d /etc/defconfig/$board ] && board="generic"
|
2009-02-24 18:16:40 +00:00
|
|
|
|
2009-02-26 05:54:07 +00:00
|
|
|
for f in $( ls /etc/defconfig/$board ); do
|
2009-02-24 18:16:40 +00:00
|
|
|
if [ ! -e /etc/config/$f ]; then
|
2009-02-26 05:54:07 +00:00
|
|
|
cp /etc/defconfig/$board/$f /etc/config/
|
2009-02-24 18:16:40 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|