From 40653fcafd67e9f89c8b6549acc4eeca7e17cec2 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Mon, 7 Nov 2011 21:43:52 +0000 Subject: [PATCH] ar71xx: create a bunch of network configs from the uci-defaults script Create the default network configuration dynamically for the boards with a single ethernet interface. SVN-Revision: 28818 --- .../ar71xx/base-files/etc/defconfig/aw-nr580/network | 12 ------------ .../ar71xx/base-files/etc/defconfig/bullet-m/network | 12 ------------ .../ar71xx/base-files/etc/defconfig/eap7660d/network | 12 ------------ .../ar71xx/base-files/etc/defconfig/rb-411/network | 12 ------------ .../base-files/etc/defconfig/tl-wa901nd-v2/network | 11 ----------- .../base-files/etc/defconfig/tl-wr703n/network | 12 ------------ .../ar71xx/base-files/etc/defconfig/wp543/network | 12 ------------ .../linux/ar71xx/base-files/etc/uci-defaults/network | 10 ++++++++++ 8 files changed, 10 insertions(+), 83 deletions(-) delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/aw-nr580/network delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/bullet-m/network delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/eap7660d/network delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/rb-411/network delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/tl-wa901nd-v2/network delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/tl-wr703n/network delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/wp543/network diff --git a/target/linux/ar71xx/base-files/etc/defconfig/aw-nr580/network b/target/linux/ar71xx/base-files/etc/defconfig/aw-nr580/network deleted file mode 100644 index 7c9fb63637..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/aw-nr580/network +++ /dev/null @@ -1,12 +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 diff --git a/target/linux/ar71xx/base-files/etc/defconfig/bullet-m/network b/target/linux/ar71xx/base-files/etc/defconfig/bullet-m/network deleted file mode 100644 index 7c9fb63637..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/bullet-m/network +++ /dev/null @@ -1,12 +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 diff --git a/target/linux/ar71xx/base-files/etc/defconfig/eap7660d/network b/target/linux/ar71xx/base-files/etc/defconfig/eap7660d/network deleted file mode 100644 index 7c9fb63637..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/eap7660d/network +++ /dev/null @@ -1,12 +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 diff --git a/target/linux/ar71xx/base-files/etc/defconfig/rb-411/network b/target/linux/ar71xx/base-files/etc/defconfig/rb-411/network deleted file mode 100644 index 7c9fb63637..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/rb-411/network +++ /dev/null @@ -1,12 +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 diff --git a/target/linux/ar71xx/base-files/etc/defconfig/tl-wa901nd-v2/network b/target/linux/ar71xx/base-files/etc/defconfig/tl-wa901nd-v2/network deleted file mode 100644 index 31780bcb84..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/tl-wa901nd-v2/network +++ /dev/null @@ -1,11 +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' - option 'proto' 'static' - option 'ipaddr' '192.168.1.1' - option 'netmask' '255.255.255.0' diff --git a/target/linux/ar71xx/base-files/etc/defconfig/tl-wr703n/network b/target/linux/ar71xx/base-files/etc/defconfig/tl-wr703n/network deleted file mode 100644 index 7c9fb63637..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/tl-wr703n/network +++ /dev/null @@ -1,12 +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 diff --git a/target/linux/ar71xx/base-files/etc/defconfig/wp543/network b/target/linux/ar71xx/base-files/etc/defconfig/wp543/network deleted file mode 100644 index 7c9fb63637..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/wp543/network +++ /dev/null @@ -1,12 +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 diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/network index 0a355eaf05..dd2eeba5b4 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/network @@ -55,6 +55,16 @@ set_interface_loopback board=$(ar71xx_board_name) case "$board" in +aw-nr580 |\ +bullet-m |\ +eap7660d |\ +rb-411 |\ +tl-wa901nd-v2 |\ +tl-wr703n |\ +wp543) + set_interface_lan "eth0" + ;; + *) set_interfaces_lan_wan "eth0" "eth1" ;; -- 2.30.2