3 # Copyright (C) 2010-2013 OpenWrt.org
9 ramips_board_detect() {
13 machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
16 *"8devices Carambola")
112 *"Hauppauge Broadway")
124 *"MoFi Network MOFI3500-3GN")
148 *"Omnima MiniEMBWiFi")
151 *"Petatel PSR-680W"*)
154 *"Planex MZK-W300NH2"*)
190 *"Skyline SL-R7205"*)
193 *"Sparklan WCR-150GN")
205 *"Sitecom WL-341 v3")
208 *"Sitecom WL-351 v1 002")
230 name="wli-tx4-ag300n"
235 *"WR512-3GN-like router")
238 *"UR-326N4G Wireless N router")
241 *"UR-336UN Wireless N router")
258 [ -z "$RAMIPS_BOARD_NAME" ] && RAMIPS_BOARD_NAME="$name"
259 [ -z "$RAMIPS_MODEL" ] && RAMIPS_MODEL="$machine"
261 [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
263 echo "$RAMIPS_BOARD_NAME" > /tmp/sysinfo/board_name
264 echo "$RAMIPS_MODEL" > /tmp/sysinfo/model
267 ramips_board_name() {
270 [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
271 [ -z "$name" ] && name="unknown"