[ar71xx] WRT160NL: enable mtd parser on 2.6.30
[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-WR741ND)
56 name="tl-wr741nd"
57 ;;
58 *TL-WR941ND)
59 name="tl-wr941nd"
60 ;;
61 *WP543)
62 name="wp543"
63 ;;
64 *WNR2000)
65 name="wnr2000"
66 ;;
67 *WRT160NL)
68 name="wrt160nl"
69 ;;
70 *WRT400N)
71 name="wrt400n"
72 ;;
73 *)
74 name="generic"
75 ;;
76 esac
77
78 echo $name
79 }
This page took 0.061473 seconds and 5 git commands to generate.