[ar71xx] build images for the AP83 board
[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 *AW-NR580)
17 name="aw-nr580"
18 ;;
19 *LS-SR71)
20 name="ls-sr71"
21 ;;
22 *MZK-W04NU)
23 name="mzk-w04nu"
24 ;;
25 *MZK-W300NH)
26 name="mzk-w300nh"
27 ;;
28 *PB42)
29 name="pb42"
30 ;;
31 *PB44)
32 name="pb44"
33 ;;
34 *RB-411)
35 name="rb-411"
36 ;;
37 *RB-433)
38 name="rb-433"
39 ;;
40 *RB-450)
41 name="rb-450"
42 ;;
43 *RB-493)
44 name="rb-493"
45 ;;
46 *RouterStation)
47 name="routerstation"
48 ;;
49 *TEW-632BRP)
50 name="tew-632brp"
51 ;;
52 *TL-WR941ND)
53 name="tl-wr941nd"
54 ;;
55 *WP543)
56 name="wp543"
57 ;;
58 *WNR2000)
59 name="wnr2000"
60 ;;
61 *WRT160NL)
62 name="wrt160nl"
63 ;;
64 *WRT400N)
65 name="wrt400n"
66 ;;
67 *)
68 name="generic"
69 ;;
70 esac
71
72 echo $name
73 }
This page took 0.053933 seconds and 5 git commands to generate.