ar71xx: fix a typo in ar71xx.sh
[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 *"Bullet M")
23 name="bullet-m"
24 ;;
25 *"Nanostation M")
26 name="nanostation-m"
27 ;;
28 *LS-SR71)
29 name="ls-sr71"
30 ;;
31 *MZK-W04NU)
32 name="mzk-w04nu"
33 ;;
34 *MZK-W300NH)
35 name="mzk-w300nh"
36 ;;
37 *PB42)
38 name="pb42"
39 ;;
40 *PB44)
41 name="pb44"
42 ;;
43 *RB-411)
44 name="rb-411"
45 ;;
46 *RB-433)
47 name="rb-433"
48 ;;
49 *RB-450)
50 name="rb-450"
51 ;;
52 *RB-493)
53 name="rb-493"
54 ;;
55 *"Rocket M")
56 name="rocket-m"
57 ;;
58 *RouterStation)
59 name="routerstation"
60 ;;
61 *"RouterStation Pro")
62 name="routerstation-pro"
63 ;;
64 *TEW-632BRP)
65 name="tew-632brp"
66 ;;
67 *TL-WR741ND)
68 name="tl-wr741nd"
69 ;;
70 *TL-WR941ND)
71 name="tl-wr941nd"
72 ;;
73 *WP543)
74 name="wp543"
75 ;;
76 *WNDR3700)
77 name="wndr3700"
78 ;;
79 *WNR2000)
80 name="wnr2000"
81 ;;
82 *WRT160NL)
83 name="wrt160nl"
84 ;;
85 *WRT400N)
86 name="wrt400n"
87 ;;
88 *)
89 name="generic"
90 ;;
91 esac
92
93 echo $name
94 }
This page took 0.049315 seconds and 5 git commands to generate.