add more base-files
[openwrt/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 *LS-SR71)
14 name="ls-sr71"
15 ;;
16 *MZK-W04NU)
17 name="mzk-w04nu"
18 ;;
19 *RB-411)
20 name="rb-411"
21 ;;
22 *RB-433)
23 name="rb-433"
24 ;;
25 *RB-450)
26 name="rb-450"
27 ;;
28 *RB-493)
29 name="rb-493"
30 ;;
31 *RouterStation)
32 name="routerstation"
33 ;;
34 *TEW-632BRP)
35 name="tew-632brp"
36 ;;
37 *TL-WR941ND)
38 name="tl-wr941nd"
39 ;;
40 *WP543)
41 name="wp543"
42 ;;
43 *)
44 name="generic"
45 ;;
46 esac
47
48 echo $name
49 }