aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-02-27 20:49:51 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-02-27 20:49:51 +0000
commit39d59b6894923e3c77d8d9a1b86bca5b06627152 (patch)
treecdee9bcb69b2fbbd70549145d4d3e8e9307b6cb9 /target/linux/ar71xx/base-files
parent2a87c6aa4b0764465185744f22c32173694d5eec (diff)
downloadupstream-39d59b6894923e3c77d8d9a1b86bca5b06627152.tar.gz
upstream-39d59b6894923e3c77d8d9a1b86bca5b06627152.tar.bz2
upstream-39d59b6894923e3c77d8d9a1b86bca5b06627152.zip
[ar71xx] add default network configuration for the AW-NR580
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14688 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rw-r--r--target/linux/ar71xx/base-files/etc/defconfig/aw-nr580/network12
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
2 files changed, 15 insertions, 0 deletions
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
index 0000000000..7c9fb63637
--- /dev/null
+++ b/target/linux/ar71xx/base-files/etc/defconfig/aw-nr580/network
@@ -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
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index e0ba798950..ae593b3153 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -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"
;;