aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-05-31 22:53:45 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-05-31 22:53:45 +0000
commit9e435c03e012c033bc0895a66478790f810669bc (patch)
tree20402d382aadc936d3c30077926f96dba01a2bdf
parent646937135fc59d81526ed30e6d2abd7b5d578736 (diff)
downloadupstream-9e435c03e012c033bc0895a66478790f810669bc.tar.gz
upstream-9e435c03e012c033bc0895a66478790f810669bc.tar.bz2
upstream-9e435c03e012c033bc0895a66478790f810669bc.zip
ar71xx: add sysupgrade support for the AP121 boards
SVN-Revision: 27069
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 4ccacf4ef1..09514c3b3f 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -69,6 +69,13 @@ platform_check_image() {
[ "$ARGC" -gt 1 ] && return 1
case "$board" in
+ ap121 | ap121-mini)
+ [ "$magic_long" != "68737173" ] && {
+ echo "Invalid image type."
+ return 1
+ }
+ return 0
+ ;;
ap81 | ap83 | dir-600-a1 | dir-615-c1 | dir-825-b1 | mzk-w04nu | mzk-w300nh | tew-632brp | wrt400n | bullet-m | nanostation-m | rocket-m | wzr-hp-g300nh | wzr-hp-g301nh | nbg460n_550n_550nh | unifi )
[ "$magic" != "2705" ] && {
echo "Invalid image type."