From 08c0787d7926f901689c4932a988519a961aea97 Mon Sep 17 00:00:00 2001 From: juhosg Date: Mon, 7 Nov 2011 21:43:54 +0000 Subject: ar71xx: create more network configs from the uci-defaults script Create the default network configuration dynamically for the boards with swapped eth0, eth1 interfaces. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28819 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../linux/ar71xx/base-files/etc/defconfig/ap83/network | 16 ---------------- .../ar71xx/base-files/etc/defconfig/jwap003/network | 16 ---------------- .../linux/ar71xx/base-files/etc/defconfig/pb42/network | 16 ---------------- .../linux/ar71xx/base-files/etc/defconfig/pb44/network | 16 ---------------- .../base-files/etc/defconfig/routerstation/network | 16 ---------------- target/linux/ar71xx/base-files/etc/uci-defaults/network | 8 ++++++++ 6 files changed, 8 insertions(+), 80 deletions(-) delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/ap83/network delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/jwap003/network delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/pb42/network delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/pb44/network delete mode 100644 target/linux/ar71xx/base-files/etc/defconfig/routerstation/network (limited to 'target/linux/ar71xx/base-files') diff --git a/target/linux/ar71xx/base-files/etc/defconfig/ap83/network b/target/linux/ar71xx/base-files/etc/defconfig/ap83/network deleted file mode 100644 index ff7b42d875..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/ap83/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 eth1 - option type bridge - option proto static - option ipaddr 192.168.1.1 - option netmask 255.255.255.0 - -config interface wan - option ifname eth0 - option proto dhcp diff --git a/target/linux/ar71xx/base-files/etc/defconfig/jwap003/network b/target/linux/ar71xx/base-files/etc/defconfig/jwap003/network deleted file mode 100644 index 5c53941863..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/jwap003/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' 'eth1' - option 'type' 'bridge' - option 'proto' 'static' - option 'ipaddr' '192.168.1.1' - option 'netmask' '255.255.255.0' - -config 'interface' 'wan' - option 'ifname' 'eth0' - option 'proto' 'dhcp' diff --git a/target/linux/ar71xx/base-files/etc/defconfig/pb42/network b/target/linux/ar71xx/base-files/etc/defconfig/pb42/network deleted file mode 100644 index ff7b42d875..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/pb42/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 eth1 - option type bridge - option proto static - option ipaddr 192.168.1.1 - option netmask 255.255.255.0 - -config interface wan - option ifname eth0 - option proto dhcp diff --git a/target/linux/ar71xx/base-files/etc/defconfig/pb44/network b/target/linux/ar71xx/base-files/etc/defconfig/pb44/network deleted file mode 100644 index ff7b42d875..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/pb44/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 eth1 - option type bridge - option proto static - option ipaddr 192.168.1.1 - option netmask 255.255.255.0 - -config interface wan - option ifname eth0 - option proto dhcp diff --git a/target/linux/ar71xx/base-files/etc/defconfig/routerstation/network b/target/linux/ar71xx/base-files/etc/defconfig/routerstation/network deleted file mode 100644 index ff7b42d875..0000000000 --- a/target/linux/ar71xx/base-files/etc/defconfig/routerstation/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 eth1 - option type bridge - option proto static - option ipaddr 192.168.1.1 - option netmask 255.255.255.0 - -config interface wan - option ifname eth0 - option proto dhcp diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/network index dd2eeba5b4..63efc88de1 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/network @@ -65,6 +65,14 @@ wp543) set_interface_lan "eth0" ;; +ap83 |\ +jwap003 |\ +pb42 |\ +pb44 |\ +routerstation) + set_interfaces_lan_wan "eth1" "eth0" + ;; + *) set_interfaces_lan_wan "eth0" "eth1" ;; -- cgit v1.2.3