Skip to content

Commit

Permalink
ar71xx: correctly detect NETGEAR WNDRMAC
Browse files Browse the repository at this point in the history
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32453 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
juhosg committed Jun 19, 2012
1 parent f054b25 commit 60f2c64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions target/linux/ar71xx/base-files/lib/ar71xx.sh
Expand Up @@ -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
Expand Down

0 comments on commit 60f2c64

Please sign in to comment.