ar71xx: correctly detect NETGEAR WNDRMAC
authorGabor Juhos <juhosg@openwrt.org>
Tue, 19 Jun 2012 10:13:38 +0000 (10:13 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 19 Jun 2012 10:13:38 +0000 (10:13 +0000)
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

target/linux/ar71xx/base-files/lib/ar71xx.sh

index e4a92af75ed95d9e9e71d42b1e0c753c3a8eacfa..d3eca415082e2c8c3a5525f345e6cccde59cc48f 100755 (executable)
@@ -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