x86/soekris: Add defconfig for soekris net4801 and net4826
[openwrt/svn-archive/archive.git] / target / linux / x86 / base-files / etc / init.d / defconfig
1 #!/bin/sh /etc/rc.common
2 #
3 # Copyright (C) 2010 Thinktube Inc.
4 #
5
6 START=05
7
8 start() {
9 . /lib/soekris.sh
10
11 local board=$(net48xx_board_name)
12
13 [ ! -d /etc/defconfig/$board ] && board="net4826"
14
15 for f in $( ls /etc/defconfig/$board ); do
16 if [ ! -e /etc/config/$f ]; then
17 cp /etc/defconfig/$board/$f /etc/config/
18 fi
19 done
20 }