From 1c93dfcd53df0b61d5d3947027ee02e8dac601da Mon Sep 17 00:00:00 2001 From: juhosg Date: Mon, 17 Dec 2012 12:28:11 +0000 Subject: ar71xx: add user-space support for UniFi AP Pro Signed-off-by: Gabor Juhos git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34728 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'target/linux/ar71xx/base-files/lib') diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 6ff6db912..45fe675af 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -387,6 +387,9 @@ ar71xx_board_detect() { *UniFi) name="unifi" ;; + *"UniFi AP Pro") + name="uap-pro" + ;; *WHR-G301N) name="whr-g301n" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 49b1de987..e03286845 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -190,6 +190,13 @@ platform_check_image() { return 1 } + return 0 + ;; + uap-pro) + [ "$magic_long" != "19852003" ] && { + echo "Invalid image type." + return 1 + } return 0 ;; wndr3700) -- cgit v1.2.3