aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc/init.d
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-02-24 18:16:40 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-02-24 18:16:40 +0000
commit23adad85b1a9335a4559b7a45527c91ae5586787 (patch)
treee7491aaea1e238860802a5727bddb33bb321edb9 /target/linux/ar71xx/base-files/etc/init.d
parent7f22b71ae0336f66638dcb3083a08bef1bf0e0ec (diff)
downloadmaster-187ad058-23adad85b1a9335a4559b7a45527c91ae5586787.tar.gz
master-187ad058-23adad85b1a9335a4559b7a45527c91ae5586787.tar.bz2
master-187ad058-23adad85b1a9335a4559b7a45527c91ae5586787.zip
[ar71xx] add more base-files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14653 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/init.d')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/init.d/defconfig20
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/init.d/defconfig b/target/linux/ar71xx/base-files/etc/init.d/defconfig
new file mode 100755
index 0000000000..f65d559fe8
--- /dev/null
+++ b/target/linux/ar71xx/base-files/etc/init.d/defconfig
@@ -0,0 +1,20 @@
+#!/bin/sh /etc/rc.common
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+
+. /lib/ar71xx.sh
+
+START=05
+
+start() {
+ local board=$(ar71xx_board_name)
+
+ [ ! -d /etc/config/defaults/$board ] && board="generic"
+
+ for f in $( ls /etc/config/defaults/$board ); do
+ if [ ! -e /etc/config/$f ]; then
+ cp /etc/config/defaults/$board/$f /etc/config/
+ fi
+ done
+}