From 5a829455cb922742a6e02c7e3200d3395fd75383 Mon Sep 17 00:00:00 2001 From: agb Date: Thu, 26 Feb 2009 05:54:07 +0000 Subject: [ar71xx] defconfig: move defaults from /etc/config/defaults/ to /etc/defconfig/, previous location broke uci git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14662 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../base-files/etc/config/defaults/generic/network | 16 ---------------- .../base-files/etc/config/defaults/mzk-w04nu/network | 16 ---------------- .../base-files/etc/config/defaults/tl-wr941nd/network | 19 ------------------- .../ar71xx/base-files/etc/defconfig/generic/network | 16 ++++++++++++++++ .../ar71xx/base-files/etc/defconfig/mzk-w04nu/network | 16 ++++++++++++++++ .../base-files/etc/defconfig/tl-wr941nd/network | 19 +++++++++++++++++++ target/linux/ar71xx/base-files/etc/init.d/defconfig | 6 +++--- 7 files changed, 54 insertions(+), 54 deletions(-) delete mode 100644 target/linux/ar71xx/base-files/etc/config/defaults/generic/network delete mode 100644 target/linux/ar71xx/base-files/etc/config/defaults/mzk-w04nu/network delete mode 100644 target/linux/ar71xx/base-files/etc/config/defaults/tl-wr941nd/network create mode 100644 target/linux/ar71xx/base-files/etc/defconfig/generic/network create mode 100644 target/linux/ar71xx/base-files/etc/defconfig/mzk-w04nu/network create mode 100644 target/linux/ar71xx/base-files/etc/defconfig/tl-wr941nd/network (limited to 'target/linux/ar71xx/base-files/etc') 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 index 2d4d8e0121..0000000000 --- a/target/linux/ar71xx/base-files/etc/config/defaults/generic/network +++ /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 index 2d4d8e0121..0000000000 --- a/target/linux/ar71xx/base-files/etc/config/defaults/mzk-w04nu/network +++ /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 index 65f6c3fc67..0000000000 --- a/target/linux/ar71xx/base-files/etc/config/defaults/tl-wr941nd/network +++ /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 index 0000000000..2d4d8e0121 --- /dev/null +++ b/target/linux/ar71xx/base-files/etc/defconfig/generic/network @@ -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 index 0000000000..2d4d8e0121 --- /dev/null +++ b/target/linux/ar71xx/base-files/etc/defconfig/mzk-w04nu/network @@ -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 index 0000000000..65f6c3fc67 --- /dev/null +++ b/target/linux/ar71xx/base-files/etc/defconfig/tl-wr941nd/network @@ -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 diff --git a/target/linux/ar71xx/base-files/etc/init.d/defconfig b/target/linux/ar71xx/base-files/etc/init.d/defconfig index f65d559fe8..856d375829 100755 --- a/target/linux/ar71xx/base-files/etc/init.d/defconfig +++ b/target/linux/ar71xx/base-files/etc/init.d/defconfig @@ -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 } -- cgit v1.2.3