diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-09 15:40:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-09 15:40:51 +0000 |
commit | 48d8bc4f971ad7795e3162134759caa37900138f (patch) | |
tree | 6ee41f8288d375801690ff0af282eaa4841ded9e /target/linux/ramips/base-files/lib | |
parent | 265174ef489db9c4ddfb5ae3a3212bbb368fd079 (diff) | |
download | upstream-48d8bc4f971ad7795e3162134759caa37900138f.tar.gz upstream-48d8bc4f971ad7795e3162134759caa37900138f.tar.bz2 upstream-48d8bc4f971ad7795e3162134759caa37900138f.zip |
ramips: add preliminary Archer C20i support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43898
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rwxr-xr-x | target/linux/ramips/base-files/lib/ramips.sh | 3 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/lib/upgrade/platform.sh | 7 |
2 files changed, 10 insertions, 0 deletions
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." |