3 # Copyright (C) 2010-2013 OpenWrt.org
6 ramips_board_detect
() {
10 machine
=$
(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc
/cpuinfo
)
13 *"MT7688 evaluation"*)
18 # use generic board detect if no name is set
19 [ -z "$name" ] && return
21 [ -e "/tmp/sysinfo/" ] || mkdir
-p "/tmp/sysinfo/"
23 echo "$name" > /tmp
/sysinfo
/board_name
24 echo "$machine" > /tmp
/sysinfo
/model