3 # Copyright (C) 2010-2013 OpenWrt.org
9 ramips_board_detect
() {
13 machine
=$
(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc
/cpuinfo
)
19 *"8devices Carambola")
130 *"EASYACC WI-STOR WIZARD 8800")
145 *"Hauppauge Broadway")
160 *"MoFi Network MOFI3500-3GN")
181 *"Planex MZK-750DHP")
205 *"Omnima MiniEMBWiFi")
211 *"Petatel PSR-680W"*)
214 *"Planex MZK-W300NH2"*)
238 *"Ralink MT7620a + MT7530 evaluation board")
239 name
="mt7620a_mt7530"
256 *"Skyline SL-R7205"*)
259 *"Sparklan WCR-150GN")
286 *"Sitecom WL-341 v3")
289 *"Sitecom WL-351 v1 002")
311 name
="wli-tx4-ag300n"
316 *"WR512-3GN-like router")
319 *"UR-326N4G Wireless N router")
322 *"UR-336UN Wireless N router")
358 *"Mediatek MT7621 evaluation board")
361 *"Mediatek MT7628AN evaluation board")
369 [ -z "$RAMIPS_BOARD_NAME" ] && RAMIPS_BOARD_NAME
="$name"
370 [ -z "$RAMIPS_MODEL" ] && RAMIPS_MODEL
="$machine"
372 [ -e "/tmp/sysinfo/" ] || mkdir
-p "/tmp/sysinfo/"
374 echo "$RAMIPS_BOARD_NAME" > /tmp
/sysinfo
/board_name
375 echo "$RAMIPS_MODEL" > /tmp
/sysinfo
/model
378 ramips_board_name
() {
381 [ -f /tmp
/sysinfo
/board_name
] && name
=$
(cat /tmp
/sysinfo
/board_name
)
382 [ -z "$name" ] && name
="unknown"