From 165010d573b7ce7c19c7cce90d25b135509a47d7 Mon Sep 17 00:00:00 2001 From: juhosg Date: Tue, 31 May 2011 22:53:45 +0000 Subject: ar71xx: add sysupgrade support for the AP121 boards git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27069 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'target/linux/ar71xx/base-files/lib/upgrade') diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 4ccacf4ef..09514c3b3 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." -- cgit v1.2.3