aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-07-28 10:56:18 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-07-28 10:56:18 +0000
commite04cce1acded74eb4f5ce0efa145d3feb355f0f7 (patch)
treedf09ad3d92e8f502a441db73684d0880e3187c78
parent324f95e8bd5a31847eb57f08e13969cf221d96e8 (diff)
downloadupstream-e04cce1acded74eb4f5ce0efa145d3feb355f0f7.tar.gz
upstream-e04cce1acded74eb4f5ce0efa145d3feb355f0f7.tar.bz2
upstream-e04cce1acded74eb4f5ce0efa145d3feb355f0f7.zip
ramips: rt305x: fix uci-defaults/network script for the RT3350 based boards
This change corrects expected CPU name of Ralink RT3050, which describes itself as RT3350 (this name is ripped off chip and elevated to user space via /proc/cpuinfo.) This patch fixes wired network on DIR-300 rev B and DIR-600 rev B Signed-off-by: Slawomir Cygan <wiewior@wiewior.eu.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27804 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/network4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network
index 8d4c6d547d..35b2fccdc6 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -1,6 +1,6 @@
#!/bin/sh
-RT305X=`cat /proc/cpuinfo | grep RT305`
-[ -z "${RT305X}" ] || {
+RT3X5X=`cat /proc/cpuinfo | grep RT3.5`
+[ -z "${RT3X5X}" ] || {
uci batch <<EOF
set network.lan.ifname=eth0.1
set network.wan=interface