From 48d8bc4f971ad7795e3162134759caa37900138f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 9 Jan 2015 15:40:51 +0000 Subject: ramips: add preliminary Archer C20i support Signed-off-by: Felix Fietkau SVN-Revision: 43898 --- target/linux/ramips/base-files/lib/ramips.sh | 3 +++ target/linux/ramips/base-files/lib/upgrade/platform.sh | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'target/linux/ramips/base-files/lib') diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 59d7418006..540da335c6 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -58,6 +58,9 @@ ramips_board_detect() { *"ARC FreeStation5") name="freestation5" ;; + *"Archer C20i") + name="c20i" + ;; *"Argus ATP-52B") name="argus-atp52b" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 10892f615d..95cad633a5 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -145,6 +145,13 @@ platform_check_image() { } return 0 ;; + c20i) + [ "$magic" != "03000000" ] && { + echo "Invalid image type." + return 1 + } + return 0 + ;; esac echo "Sysupgrade is not yet supported on $board." -- cgit v1.2.3