aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib/ramips.sh
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-10-19 10:19:22 +0000
committerJohn Crispin <blogic@openwrt.org>2015-10-19 10:19:22 +0000
commitebff32ce9e793005ff6a54037bf02ea067a41569 (patch)
tree4d65207171a171f6bcc6cf814537b9baa6f3103a /target/linux/ramips/base-files/lib/ramips.sh
parent563f3a4cb7cdc56f3134144bdd59e24adcdd5e21 (diff)
downloadupstream-ebff32ce9e793005ff6a54037bf02ea067a41569.tar.gz
upstream-ebff32ce9e793005ff6a54037bf02ea067a41569.tar.bz2
upstream-ebff32ce9e793005ff6a54037bf02ea067a41569.zip
ramips: add LinkIt Smart7688 support
Signed-off-by: John Crispin <blogic@openwrt.org> Backport of r47203 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47227 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/lib/ramips.sh')
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index d2a1856cd8..82a1f91397 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -418,6 +418,15 @@ ramips_board_detect() {
*"Mediatek MT7628AN evaluation board")
name="mt7628"
;;
+ *"MediaTek LinkIt Smart7688")
+ linkit="$(dd bs=1 skip=1024 count=12 if=/dev/mtd2 2> /dev/null)"
+ if [ "${linkit}" = "LINKITS7688D" ]; then
+ name="linkits7688d"
+ RAMIPS_MODEL="${machine} DUO"
+ else
+ name="linkits7688"
+ fi
+ ;;
*)
name="generic"
;;