aboutsummaryrefslogtreecommitdiffstats
path: root/package/librpc/Makefile
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-12-07 06:55:39 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-12-07 06:55:39 +0000
commit8eb8a6e1e7cec83cbb3a3d4a7486f0e5205a1b98 (patch)
treeb7ac7e778a9d10b20afdfd57a74143b205066c74 /package/librpc/Makefile
parent43bd4c6ad11980ee1bfaf38ba20e09e7f0a2237a (diff)
downloadupstream-8eb8a6e1e7cec83cbb3a3d4a7486f0e5205a1b98.tar.gz
upstream-8eb8a6e1e7cec83cbb3a3d4a7486f0e5205a1b98.tar.bz2
upstream-8eb8a6e1e7cec83cbb3a3d4a7486f0e5205a1b98.zip
ar71xx: fix WNDR3x00 model detection
Detect the model name for /tmp/sysinfo/model based on 10 bytes at offset 56 in the art (caldata) mtd partition. r29434 redid WNDR3x00 model detection, attempting to distinguish between WNDR3700v2 and WNDR3800 by checking MemTotal in /proc/meminfo. However, it contained a bug: it put the awk inside a $(...), with the result that all WNDR3700v2 and WNDR3800 models would be reported as WNDR3800. This patch checks the model name stored in the art partition, as is done by U-Boot shipping on the WNDR3800. It has the likely advantage of working with future models based on the WNDR3700 board. It also will not mis-detect units on which people install more memory. I have tested this patch on WNDR3700 (v1), WNDR3700v2, and WNDR3800. Signed-off-by: Mark Mentovai <mark@moxienet.com> SVN-Revision: 29472
Diffstat (limited to 'package/librpc/Makefile')
0 files changed, 0 insertions, 0 deletions