f34454b6d8d9a67e535777c54bbba10fe4a3f2e8
[openwrt.git] / target / linux / ramips / base-files / lib / ramips.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 2010 OpenWrt.org
4 #
5
6 ramips_board_name() {
7 local machine
8 local name
9
10 machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
11
12 case "$machine" in
13 *"Aztech HW550-3G")
14 name="hw550-3g"
15 ;;
16 *"DIR-300 B1")
17 name="dir-300-b1"
18 ;;
19 *"DIR-600 B1")
20 name="dir-600-b1"
21 ;;
22 *"DIR-600 B2")
23 name="dir-600-b2"
24 ;;
25 *"F5D8235 v2")
26 name="f5d8235-v2"
27 ;;
28 *"La Fonera 2.0N")
29 name="fonera20n"
30 ;;
31 *"MoFi Network MOFI3500-3GN")
32 name="mofi3500-3gn"
33 ;;
34 *"PWH2004")
35 name="pwh2004"
36 ;;
37 *"RT-N15")
38 name="rt-n15"
39 ;;
40 *"WCR-150GN")
41 name="wcr-150gn"
42 ;;
43 *"V22RW-2X2")
44 name="v22rw-2x2"
45 ;;
46 *"WHR-G300N")
47 name="whr-g300n"
48 ;;
49 *"WZR-AGL300NH")
50 name="wzr-agl300nh"
51 ;;
52 *)
53 name="generic"
54 ;;
55 esac
56
57 echo $name
58 }
This page took 0.048262 seconds and 3 git commands to generate.