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 | 60a5ab1efecd4e36f83216a4648db155582b7625 (patch) | |
tree | 8119699619b8fb8d8df58b8d2ae23c71d4a4b517 /target/linux/ramips/base-files/lib | |
parent | 75e7bc809e5fa0960476ec5eee80a71a0879999f (diff) | |
download | master-187ad058-60a5ab1efecd4e36f83216a4648db155582b7625.tar.gz master-187ad058-60a5ab1efecd4e36f83216a4648db155582b7625.tar.bz2 master-187ad058-60a5ab1efecd4e36f83216a4648db155582b7625.zip |
ramips: add preliminary Archer C20i support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43898 3c298f89-4303-0410-b956-a3cf2f4a3e73
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." |