From: Gabor Juhos Date: Tue, 19 Jun 2012 10:13:38 +0000 (+0000) Subject: ar71xx: correctly detect NETGEAR WNDRMAC X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=27fea0b6d7ee3bfebfac2ed860dbd4bdaff7a0b1;p=openwrt%2Fstaging%2Frobimarko.git 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 SVN-Revision: 32453 --- 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