defconfig: move defaults from /etc/config/defaults/ to /etc/defconfig/, previous...
authorAndy Boyett <agb@openwrt.org>
Thu, 26 Feb 2009 05:54:07 +0000 (05:54 +0000)
committerAndy Boyett <agb@openwrt.org>
Thu, 26 Feb 2009 05:54:07 +0000 (05:54 +0000)
SVN-Revision: 14662

target/linux/ar71xx/base-files/etc/config/defaults/generic/network [deleted file]
target/linux/ar71xx/base-files/etc/config/defaults/mzk-w04nu/network [deleted file]
target/linux/ar71xx/base-files/etc/config/defaults/tl-wr941nd/network [deleted file]
target/linux/ar71xx/base-files/etc/defconfig/generic/network [new file with mode: 0644]
target/linux/ar71xx/base-files/etc/defconfig/mzk-w04nu/network [new file with mode: 0644]
target/linux/ar71xx/base-files/etc/defconfig/tl-wr941nd/network [new file with mode: 0644]
target/linux/ar71xx/base-files/etc/init.d/defconfig

diff --git a/target/linux/ar71xx/base-files/etc/config/defaults/generic/network b/target/linux/ar71xx/base-files/etc/config/defaults/generic/network
deleted file mode 100644 (file)
index 2d4d8e0..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-config interface loopback
-       option ifname   lo
-       option proto    static
-       option ipaddr   127.0.0.1
-       option netmask  255.0.0.0
-
-config interface lan
-       option ifname   eth0
-       option type     bridge
-       option proto    static
-       option ipaddr   192.168.1.1
-       option netmask  255.255.255.0
-
-config interface wan
-       option ifname   eth1
-       option proto    dhcp
diff --git a/target/linux/ar71xx/base-files/etc/config/defaults/mzk-w04nu/network b/target/linux/ar71xx/base-files/etc/config/defaults/mzk-w04nu/network
deleted file mode 100644 (file)
index 2d4d8e0..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-config interface loopback
-       option ifname   lo
-       option proto    static
-       option ipaddr   127.0.0.1
-       option netmask  255.0.0.0
-
-config interface lan
-       option ifname   eth0
-       option type     bridge
-       option proto    static
-       option ipaddr   192.168.1.1
-       option netmask  255.255.255.0
-
-config interface wan
-       option ifname   eth1
-       option proto    dhcp
diff --git a/target/linux/ar71xx/base-files/etc/config/defaults/tl-wr941nd/network b/target/linux/ar71xx/base-files/etc/config/defaults/tl-wr941nd/network
deleted file mode 100644 (file)
index 65f6c3f..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-config interface loopback
-       option ifname   lo
-       option proto    static
-       option ipaddr   127.0.0.1
-       option netmask  255.0.0.0
-
-config interface eth
-       option ifname   eth0
-
-config interface lan
-       option ifname   "lan1 lan2 lan3 lan4"
-       option type     bridge
-       option proto    static
-       option ipaddr   192.168.1.1
-       option netmask  255.255.255.0
-
-config interface wan
-       option ifname   wan
-       option proto    dhcp
diff --git a/target/linux/ar71xx/base-files/etc/defconfig/generic/network b/target/linux/ar71xx/base-files/etc/defconfig/generic/network
new file mode 100644 (file)
index 0000000..2d4d8e0
--- /dev/null
@@ -0,0 +1,16 @@
+config interface loopback
+       option ifname   lo
+       option proto    static
+       option ipaddr   127.0.0.1
+       option netmask  255.0.0.0
+
+config interface lan
+       option ifname   eth0
+       option type     bridge
+       option proto    static
+       option ipaddr   192.168.1.1
+       option netmask  255.255.255.0
+
+config interface wan
+       option ifname   eth1
+       option proto    dhcp
diff --git a/target/linux/ar71xx/base-files/etc/defconfig/mzk-w04nu/network b/target/linux/ar71xx/base-files/etc/defconfig/mzk-w04nu/network
new file mode 100644 (file)
index 0000000..2d4d8e0
--- /dev/null
@@ -0,0 +1,16 @@
+config interface loopback
+       option ifname   lo
+       option proto    static
+       option ipaddr   127.0.0.1
+       option netmask  255.0.0.0
+
+config interface lan
+       option ifname   eth0
+       option type     bridge
+       option proto    static
+       option ipaddr   192.168.1.1
+       option netmask  255.255.255.0
+
+config interface wan
+       option ifname   eth1
+       option proto    dhcp
diff --git a/target/linux/ar71xx/base-files/etc/defconfig/tl-wr941nd/network b/target/linux/ar71xx/base-files/etc/defconfig/tl-wr941nd/network
new file mode 100644 (file)
index 0000000..65f6c3f
--- /dev/null
@@ -0,0 +1,19 @@
+config interface loopback
+       option ifname   lo
+       option proto    static
+       option ipaddr   127.0.0.1
+       option netmask  255.0.0.0
+
+config interface eth
+       option ifname   eth0
+
+config interface lan
+       option ifname   "lan1 lan2 lan3 lan4"
+       option type     bridge
+       option proto    static
+       option ipaddr   192.168.1.1
+       option netmask  255.255.255.0
+
+config interface wan
+       option ifname   wan
+       option proto    dhcp
index f65d559fe85a36b33ba81a4a96cdf1152d00456a..856d375829df375412167cdc2297cce4dc54e9e0 100755 (executable)
@@ -10,11 +10,11 @@ START=05
 start() {
        local board=$(ar71xx_board_name)
 
-       [ ! -d /etc/config/defaults/$board ] && board="generic"
+       [ ! -d /etc/defconfig/$board ] && board="generic"
 
-       for f in $( ls /etc/config/defaults/$board ); do
+       for f in $( ls /etc/defconfig/$board ); do
                if [ ! -e /etc/config/$f ]; then
-                       cp /etc/config/defaults/$board/$f /etc/config/
+                       cp /etc/defconfig/$board/$f /etc/config/
                fi
        done
 }