add default network configuration for the AW-NR580
authorGabor Juhos <juhosg@openwrt.org>
Fri, 27 Feb 2009 20:49:51 +0000 (20:49 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 27 Feb 2009 20:49:51 +0000 (20:49 +0000)
SVN-Revision: 14688

target/linux/ar71xx/base-files/etc/defconfig/aw-nr580/network [new file with mode: 0644]
target/linux/ar71xx/base-files/lib/ar71xx.sh

diff --git a/target/linux/ar71xx/base-files/etc/defconfig/aw-nr580/network b/target/linux/ar71xx/base-files/etc/defconfig/aw-nr580/network
new file mode 100644 (file)
index 0000000..7c9fb63
--- /dev/null
@@ -0,0 +1,12 @@
+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
index e0ba798950602106d069d98a6622743c1c3cb7d5..ae593b31533b39d41b275911a4d512ff54f5690f 100755 (executable)
@@ -10,6 +10,9 @@ ar71xx_board_name() {
        machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
 
        case "$machine" in
+       *AW-NR580)
+               name="aw-nr580"
+               ;;
        *LS-SR71)
                name="ls-sr71"
                ;;