ar71xx: fix sysupgrade on the ubnt nanostation m
[openwrt.git] / target / linux / ar71xx / base-files / lib / ar71xx.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 2009 OpenWrt.org
4 #
5
6 ar71xx_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 *AP81)
14 name="ap81"
15 ;;
16 *AP83)
17 name="ap83"
18 ;;
19 *AW-NR580)
20 name="aw-nr580"
21 ;;
22 *"DIR-600 rev. A1")
23 name="dir-600-a1"
24 ;;
25 *"DIR-825 rev. B1")
26 name="dir-825-b1"
27 ;;
28 *EAP7660D)
29 name="eap7660d"
30 ;;
31 *"Bullet M")
32 name="bullet-m"
33 ;;
34 *"Nanostation M")
35 name="nanostation-m"
36 ;;
37 *LS-SR71)
38 name="ls-sr71"
39 ;;
40 *MZK-W04NU)
41 name="mzk-w04nu"
42 ;;
43 *MZK-W300NH)
44 name="mzk-w300nh"
45 ;;
46 *PB42)
47 name="pb42"
48 ;;
49 *PB44)
50 name="pb44"
51 ;;
52 *"RouterBOARD 411/A/AH")
53 name="rb-411"
54 ;;
55 *"RouterBOARD 411U")
56 name="rb-411u"
57 ;;
58 *"RouterBOARD 433/AH")
59 name="rb-433"
60 ;;
61 *"RouterBOARD 433UAH")
62 name="rb-433u"
63 ;;
64 *"RouterBOARD 450")
65 name="rb-450"
66 ;;
67 *"RouterBOARD 450G")
68 name="rb-450g"
69 ;;
70 *"RouterBOARD 493/AH")
71 name="rb-493"
72 ;;
73 *"RouterBOARD 750")
74 name="rb-750"
75 ;;
76 *"Rocket M")
77 name="rocket-m"
78 ;;
79 *RouterStation)
80 name="routerstation"
81 ;;
82 *"RouterStation Pro")
83 name="routerstation-pro"
84 ;;
85 *TEW-632BRP)
86 name="tew-632brp"
87 ;;
88 *TL-WR1043ND)
89 name="tl-wr1043nd"
90 ;;
91 *"DIR-615 rev. C1")
92 name="dir-615-c1"
93 ;;
94 *TL-WA901ND)
95 name="tl-wa901nd"
96 ;;
97 *TL-WR741ND)
98 name="tl-wr741nd"
99 ;;
100 *"TL-WR841N v1")
101 name="tl-wr841n-v1"
102 ;;
103 *TL-WR941ND)
104 name="tl-wr941nd"
105 ;;
106 *WP543)
107 name="wp543"
108 ;;
109 *WNDR3700)
110 name="wndr3700"
111 ;;
112 *WNR2000)
113 name="wnr2000"
114 ;;
115 *WRT160NL)
116 name="wrt160nl"
117 ;;
118 *WRT400N)
119 name="wrt400n"
120 ;;
121 *WZR-HP-G300NH)
122 name="wzr-hp-g300nh"
123 ;;
124 *)
125 name="generic"
126 ;;
127 esac
128
129 echo $name
130 }
This page took 0.043055 seconds and 5 git commands to generate.