projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[ar71xx] pb42: fix ethernet, remove USB registration, add default network configuration
[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
*AW-NR580)
14
name="aw-nr580"
15
;;
16
*LS-SR71)
17
name="ls-sr71"
18
;;
19
*MZK-W04NU)
20
name="mzk-w04nu"
21
;;
22
*PB42)
23
name="pb42"
24
;;
25
*RB-411)
26
name="rb-411"
27
;;
28
*RB-433)
29
name="rb-433"
30
;;
31
*RB-450)
32
name="rb-450"
33
;;
34
*RB-493)
35
name="rb-493"
36
;;
37
*RouterStation)
38
name="routerstation"
39
;;
40
*TEW-632BRP)
41
name="tew-632brp"
42
;;
43
*TL-WR941ND)
44
name="tl-wr941nd"
45
;;
46
*WP543)
47
name="wp543"
48
;;
49
*WNR2000)
50
name="wnr2000"
51
;;
52
*)
53
name="generic"
54
;;
55
esac
56
57
echo $name
58
}