aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-11-03 20:20:56 +0000
committerJohn Crispin <john@openwrt.org>2014-11-03 20:20:56 +0000
commit2c72ffc154c70b371a93f179587d899bbba921ca (patch)
treed0997efabb21a7836d89c95e78cc48d11bbdd40d /target/linux/ar71xx/base-files/lib
parentb25b58a96aa700081cafe40625307f3ab4705995 (diff)
downloadupstream-2c72ffc154c70b371a93f179587d899bbba921ca.tar.gz
upstream-2c72ffc154c70b371a93f179587d899bbba921ca.tar.bz2
upstream-2c72ffc154c70b371a93f179587d899bbba921ca.zip
ar71xx: add support for Netgear WNR2000v4
Signed-off-by: Michaƫl Burtin <mburtin@gmail.com> SVN-Revision: 43173
Diffstat (limited to 'target/linux/ar71xx/base-files/lib')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh8
2 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 40e930360c..a3cefc5043 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -698,6 +698,9 @@ ar71xx_board_detect() {
*"WNDR4300")
name="wndr4300"
;;
+ *"WNR2000 V4")
+ name="wnr2000-v4"
+ ;;
*"WNR2000 V3")
name="wnr2000-v3"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 6220f16a7e..7a02e37d22 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -385,6 +385,14 @@ platform_check_image() {
fi
return 0
;;
+ wnr2000-v4)
+ [ "$magic_long" != "32303034" ] && {
+ echo "Invalid image type."
+ return 1
+ }
+ return 0
+ ;;
+
esac
echo "Sysupgrade is not yet supported on $board."