aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-08-03 11:13:52 +0000
committerJohn Crispin <john@openwrt.org>2014-08-03 11:13:52 +0000
commit04e4ff282ad359485afe34deb658f36ffb34c16f (patch)
tree44531b4cdef2083cb397c53fe24ba3a0d1834766 /target/linux/ramips/base-files/lib
parent44cb68c038ccef470e346c6fd9d0919a82fe68d9 (diff)
downloadupstream-04e4ff282ad359485afe34deb658f36ffb34c16f.tar.gz
upstream-04e4ff282ad359485afe34deb658f36ffb34c16f.tar.bz2
upstream-04e4ff282ad359485afe34deb658f36ffb34c16f.zip
ramips:support Lenovo AC1200 Wireless router
Lenovo AC1200 series has two types, Y1 and Y1S. Y1S has 256MB DDR2, Y1 only has 128MB and Y1 have no Giga Port. Signed-off-by: Lintel <lintel.huang@gmail.com> SVN-Revision: 41961
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh6
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh4
2 files changed, 9 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index a6dcbca2fe..a24842e29f 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -325,6 +325,12 @@ ramips_board_detect() {
*"ZBT WR8305RT")
name="wr8305rt"
;;
+ *"Lenovo Y1")
+ name="y1"
+ ;;
+ *"Lenovo Y1S")
+ name="y1s"
+ ;;
*)
name="generic"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index a39596d2bf..08b3745425 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -96,7 +96,9 @@ platform_check_image() {
wrtnode |\
x5 |\
x8 |\
- zbt-wa05)
+ zbt-wa05 |\
+ y1 |\
+ y1s)
[ "$magic" != "27051956" ] && {
echo "Invalid image type."
return 1