aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/lib/ar71xx.sh
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-06-19 10:13:38 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-06-19 10:13:38 +0000
commit27fea0b6d7ee3bfebfac2ed860dbd4bdaff7a0b1 (patch)
tree6fdde12be6e712b625656f812adafe71050ce5a8 /target/linux/ar71xx/base-files/lib/ar71xx.sh
parentee9bc123fb402e00fc1c24fb3f8e99c489c571ce (diff)
downloadupstream-27fea0b6d7ee3bfebfac2ed860dbd4bdaff7a0b1.tar.gz
upstream-27fea0b6d7ee3bfebfac2ed860dbd4bdaff7a0b1.tar.bz2
upstream-27fea0b6d7ee3bfebfac2ed860dbd4bdaff7a0b1.zip
ar71xx: correctly detect NETGEAR WNDRMAC
This patch helps properly detect a WNDRMAC device. Before this patch the model is detected as "NETGEAR ?????????N". Signed-off-by: Roman A. aka BasicXP <x12ozmouse@ya.ru> SVN-Revision: 32453
Diffstat (limited to 'target/linux/ar71xx/base-files/lib/ar71xx.sh')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index e4a92af75e..d3eca41508 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -41,6 +41,8 @@ wndr3700_board_detect() {
model=$(ar71xx_get_mtd_offset_size_format art 56 10 %c)
if [ -z "$model" ] || [ "$model" = $'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' ]; then
machine="NETGEAR WNDR3700v2"
+ elif [ -z "$model" ] || [ "$model" = $'\xff\xff\xff\xff\xff\xff\xff\xff\xffN' ]; then
+ machine="NETGEAR WNDRMAC"
else
machine="NETGEAR $model"
fi