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")
127 *"EASYACC WI-STOR WIZARD 8800")
142 *"Hauppauge Broadway")
157 *"MoFi Network MOFI3500-3GN")
175 *"Planex MZK-750DHP")
199 *"Omnima MiniEMBWiFi")
205 *"Petatel PSR-680W"*)
208 *"Planex MZK-W300NH2"*)
232 *"Ralink MT7620a + MT7530 evaluation board")
233 name
="mt7620a_mt7530"
250 *"Skyline SL-R7205"*)
253 *"Sparklan WCR-150GN")
280 *"Sitecom WL-341 v3")
283 *"Sitecom WL-351 v1 002")
305 name
="wli-tx4-ag300n"
310 *"WR512-3GN-like router")
313 *"UR-326N4G Wireless N router")
316 *"UR-336UN Wireless N router")
357 [ -z "$RAMIPS_BOARD_NAME" ] && RAMIPS_BOARD_NAME
="$name"
358 [ -z "$RAMIPS_MODEL" ] && RAMIPS_MODEL
="$machine"
360 [ -e "/tmp/sysinfo/" ] || mkdir
-p "/tmp/sysinfo/"
362 echo "$RAMIPS_BOARD_NAME" > /tmp
/sysinfo
/board_name
363 echo "$RAMIPS_MODEL" > /tmp
/sysinfo
/model
366 ramips_board_name
() {
369 [ -f /tmp
/sysinfo
/board_name
] && name
=$
(cat /tmp
/sysinfo
/board_name
)
370 [ -z "$name" ] && name
="unknown"