2010-04-12 01:47:23 +08: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-08-15 22:11:45 +08:00
|
|
|
*"Argus ATP-52B")
|
|
|
|
name="argus-atp52b"
|
|
|
|
;;
|
2011-07-03 23:01:56 +08:00
|
|
|
*"Aztech HW550-3G")
|
|
|
|
name="hw550-3g"
|
|
|
|
;;
|
2011-07-28 18:56:22 +08:00
|
|
|
*"DIR-300 B1")
|
2010-04-12 01:47:23 +08:00
|
|
|
name="dir-300-b1"
|
|
|
|
;;
|
2011-07-28 18:56:24 +08:00
|
|
|
*"DIR-600 B1")
|
|
|
|
name="dir-600-b1"
|
|
|
|
;;
|
|
|
|
*"DIR-600 B2")
|
|
|
|
name="dir-600-b2"
|
|
|
|
;;
|
2011-07-03 23:01:56 +08:00
|
|
|
*"F5D8235 v2")
|
|
|
|
name="f5d8235-v2"
|
|
|
|
;;
|
2010-04-12 01:47:23 +08:00
|
|
|
*"La Fonera 2.0N")
|
|
|
|
name="fonera20n"
|
|
|
|
;;
|
2011-07-03 23:01:56 +08:00
|
|
|
*"MoFi Network MOFI3500-3GN")
|
|
|
|
name="mofi3500-3gn"
|
|
|
|
;;
|
2011-08-23 04:41:49 +08:00
|
|
|
*"NBG-419N")
|
|
|
|
name="nbg-419n"
|
|
|
|
;;
|
2011-07-28 18:56:32 +08:00
|
|
|
*"NW718")
|
|
|
|
name="nw718"
|
|
|
|
;;
|
2011-07-03 23:01:56 +08:00
|
|
|
*"PWH2004")
|
|
|
|
name="pwh2004"
|
|
|
|
;;
|
2011-07-28 18:56:30 +08:00
|
|
|
*"RT-G32 B1")
|
|
|
|
name="rt-g32-b1"
|
|
|
|
;;
|
2011-07-03 23:01:56 +08:00
|
|
|
*"RT-N15")
|
|
|
|
name="rt-n15"
|
|
|
|
;;
|
|
|
|
*"WCR-150GN")
|
|
|
|
name="wcr-150gn"
|
|
|
|
;;
|
2010-04-12 01:47:23 +08:00
|
|
|
*"V22RW-2X2")
|
|
|
|
name="v22rw-2x2"
|
|
|
|
;;
|
|
|
|
*"WHR-G300N")
|
|
|
|
name="whr-g300n"
|
|
|
|
;;
|
2011-07-03 23:01:56 +08:00
|
|
|
*"WZR-AGL300NH")
|
|
|
|
name="wzr-agl300nh"
|
2011-04-04 16:43:07 +08:00
|
|
|
;;
|
2011-08-23 02:08:45 +08:00
|
|
|
*"WR512-3GN-like router")
|
2011-08-19 23:55:10 +08:00
|
|
|
name="wr512-3gn"
|
|
|
|
;;
|
2010-04-12 01:47:23 +08:00
|
|
|
*)
|
|
|
|
name="generic"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo $name
|
|
|
|
}
|