2010-04-11 20:47:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
ramips_board_name() {
|
|
|
|
local machine
|
|
|
|
local name
|
|
|
|
|
|
|
|
machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
|
|
|
|
|
|
|
|
case "$machine" in
|
2011-07-03 18:01:56 +03:00
|
|
|
*"Aztech HW550-3G")
|
|
|
|
name="hw550-3g"
|
|
|
|
;;
|
2010-04-11 20:47:23 +03:00
|
|
|
*"DIR-300 revB")
|
|
|
|
name="dir-300-b1"
|
|
|
|
;;
|
2011-07-03 18:01:56 +03:00
|
|
|
*"F5D8235 v2")
|
|
|
|
name="f5d8235-v2"
|
|
|
|
;;
|
2010-04-11 20:47:23 +03:00
|
|
|
*"La Fonera 2.0N")
|
|
|
|
name="fonera20n"
|
|
|
|
;;
|
2011-07-03 18:01:56 +03:00
|
|
|
*"MoFi Network MOFI3500-3GN")
|
|
|
|
name="mofi3500-3gn"
|
|
|
|
;;
|
|
|
|
*"PWH2004")
|
|
|
|
name="pwh2004"
|
|
|
|
;;
|
|
|
|
*"RT-N15")
|
|
|
|
name="rt-n15"
|
|
|
|
;;
|
|
|
|
*"WCR-150GN")
|
|
|
|
name="wcr-150gn"
|
|
|
|
;;
|
2010-04-11 20:47:23 +03:00
|
|
|
*"V22RW-2X2")
|
|
|
|
name="v22rw-2x2"
|
|
|
|
;;
|
|
|
|
*"WHR-G300N")
|
|
|
|
name="whr-g300n"
|
|
|
|
;;
|
2011-07-03 18:01:56 +03:00
|
|
|
*"WZR-AGL300NH")
|
|
|
|
name="wzr-agl300nh"
|
2011-04-04 11:43:07 +03:00
|
|
|
;;
|
2010-04-11 20:47:23 +03:00
|
|
|
*)
|
|
|
|
name="generic"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo $name
|
|
|
|
}
|