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")
91 *"Buffalo WSR-600DHP")
94 *"Buffalo WSR-1166DHP")
154 *"EASYACC WI-STOR WIZARD 8800")
169 *"Hauppauge Broadway")
184 *"MoFi Network MOFI3500-3GN")
208 *"Planex MZK-750DHP")
211 *"Microduino MicroWRT")
232 *"Intenso Memory 2 Move")
238 *"Omnima MiniEMBWiFi")
244 *"OLinuXino-RT5350F")
245 name="olinuxino-rt5350f"
247 *"OLinuXino-RT5350F-EVB")
248 name="olinuxino-rt5350f-evb"
250 *"Petatel PSR-680W"*)
253 *"Planex MZK-W300NH2"*)
277 *"Ralink MT7620a + MT7530 evaluation board")
278 name="mt7620a_mt7530"
295 *"Skyline SL-R7205"*)
298 *"Sparklan WCR-150GN")
325 *"Sitecom WL-341 v3")
328 *"Sitecom WL-351 v1 002")
353 name="wli-tx4-ag300n"
358 *"WR512-3GN-like router")
361 *"UR-326N4G Wireless N router")
364 *"UR-336UN Wireless N router")
385 *"Xiaomi MiWiFi Mini")
386 name="xiaomi-miwifi-mini"
406 *"Mediatek MT7621 evaluation board")
409 *"Mediatek MT7628AN evaluation board")
417 [ -z "$RAMIPS_BOARD_NAME" ] && RAMIPS_BOARD_NAME="$name"
418 [ -z "$RAMIPS_MODEL" ] && RAMIPS_MODEL="$machine"
420 [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
422 echo "$RAMIPS_BOARD_NAME" > /tmp/sysinfo/board_name
423 echo "$RAMIPS_MODEL" > /tmp/sysinfo/model
426 ramips_board_name() {
429 [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
430 [ -z "$name" ] && name="unknown"