summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-11-06 09:31:31 +0000
committerJohn Crispin <john@openwrt.org>2014-11-06 09:31:31 +0000
commitcadf5171074f7b18d007470b9f89deea87bb4c46 (patch)
tree2a4982693fd872563f0aabe73941c705e2cc21ed /target/linux/ramips/base-files/lib
parentf8404aaf9e44bab6fb629d5ee106e50ca2943d1c (diff)
downloadmtk-20170518-cadf5171074f7b18d007470b9f89deea87bb4c46.zip
mtk-20170518-cadf5171074f7b18d007470b9f89deea87bb4c46.tar.gz
mtk-20170518-cadf5171074f7b18d007470b9f89deea87bb4c46.tar.bz2
ralink: add support for mt7628
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43197
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips4
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
2 files changed, 5 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
index ab87421b..cae6396 100644
--- a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
+++ b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
@@ -6,12 +6,12 @@
. /lib/ramips.sh
ramips_set_preinit_iface() {
- RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"`
+ RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350|MT7628)"`
if [ -n "${RT3X5X}" ]; then
swconfig dev rt305x set reset 1
fi
- if echo $RT3X5X | grep -q RT5350; then
+ if echo $RT3X5X | egrep -q "(RT5350|MT7628)"; then
# This is a dirty hack to get by while the switch
# problem is investigated. When VLAN is disabled, ICMP
# pings work as expected, but TCP connections time
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index e42f719..7538876 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -355,6 +355,9 @@ ramips_board_detect() {
*"Lenovo Y1S")
name="y1s"
;;
+ *"Mediatek MT7628AN evaluation board")
+ name="mt7628"
+ ;;
*)
name="generic"
;;