diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-06-19 10:13:38 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-06-19 10:13:38 +0000 |
commit | 50527ff2b19c4b0e1e3612111c366eafcc892a36 (patch) | |
tree | a2a6ec72f4253142df2f11b2b151eb3b5fff352d /target/linux/ar71xx/base-files | |
parent | fb2e3572345929050b315986cffc9f43ad5e6c26 (diff) | |
download | master-187ad058-50527ff2b19c4b0e1e3612111c366eafcc892a36.tar.gz master-187ad058-50527ff2b19c4b0e1e3612111c366eafcc892a36.tar.bz2 master-187ad058-50527ff2b19c4b0e1e3612111c366eafcc892a36.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32453 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/ar71xx.sh | 2 |
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 |