ar71xx: create more network configs from the uci-defaults script
authorGabor Juhos <juhosg@openwrt.org>
Mon, 7 Nov 2011 21:43:54 +0000 (21:43 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 7 Nov 2011 21:43:54 +0000 (21:43 +0000)
Create the default network configuration dynamically for the boards with
swapped eth0, eth1 interfaces.

SVN-Revision: 28819

target/linux/ar71xx/base-files/etc/defconfig/ap83/network [deleted file]
target/linux/ar71xx/base-files/etc/defconfig/jwap003/network [deleted file]
target/linux/ar71xx/base-files/etc/defconfig/pb42/network [deleted file]
target/linux/ar71xx/base-files/etc/defconfig/pb44/network [deleted file]
target/linux/ar71xx/base-files/etc/defconfig/routerstation/network [deleted file]
target/linux/ar71xx/base-files/etc/uci-defaults/network

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 (file)
index ff7b42d..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   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 (file)
index 5c53941..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' '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 (file)
index ff7b42d..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   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 (file)
index ff7b42d..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   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 (file)
index ff7b42d..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   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
index dd2eeba5b41335a7b202a3fb75b21eecfcabd79b..63efc88de122f332bb94923b59c1ddf3e1d830f6 100755 (executable)
@@ -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"
        ;;