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