[ar71xx] add experimental support for the Linksys WRT400N board (thanks to netprince)
[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 *PB42)
26 name="pb42"
27 ;;
28 *RB-411)
29 name="rb-411"
30 ;;
31 *RB-433)
32 name="rb-433"
33 ;;
34 *RB-450)
35 name="rb-450"
36 ;;
37 *RB-493)
38 name="rb-493"
39 ;;
40 *RouterStation)
41 name="routerstation"
42 ;;
43 *TEW-632BRP)
44 name="tew-632brp"
45 ;;
46 *TL-WR941ND)
47 name="tl-wr941nd"
48 ;;
49 *WP543)
50 name="wp543"
51 ;;
52 *WNR2000)
53 name="wnr2000"
54 ;;
55 *WRT400N)
56 name="wrt400n"
57 ;;
58 *)
59 name="generic"
60 ;;
61 esac
62
63 echo $name
64 }
This page took 0.044715 seconds and 5 git commands to generate.