projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ramips: use maccalc instead of hexdump + sed
[openwrt.git]
/
target
/
linux
/
ramips
/
base-files
/
lib
/
ramips.sh
1
#!/bin/sh
2
#
3
# Copyright (C) 2010 OpenWrt.org
4
#
5
6
ramips_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
*
"Argus ATP-52B"
)
14
name
=
"argus-atp52b"
15
;;
16
*
"Aztech HW550-3G"
)
17
name
=
"hw550-3g"
18
;;
19
*
"DIR-300 B1"
)
20
name
=
"dir-300-b1"
21
;;
22
*
"DIR-600 B1"
)
23
name
=
"dir-600-b1"
24
;;
25
*
"DIR-600 B2"
)
26
name
=
"dir-600-b2"
27
;;
28
*
"F5D8235 v2"
)
29
name
=
"f5d8235-v2"
30
;;
31
*
"La Fonera 2.0N"
)
32
name
=
"fonera20n"
33
;;
34
*
"MoFi Network MOFI3500-3GN"
)
35
name
=
"mofi3500-3gn"
36
;;
37
*
"NW718"
)
38
name
=
"nw718"
39
;;
40
*
"PWH2004"
)
41
name
=
"pwh2004"
42
;;
43
*
"RT-G32 B1"
)
44
name
=
"rt-g32-b1"
45
;;
46
*
"RT-N15"
)
47
name
=
"rt-n15"
48
;;
49
*
"WCR-150GN"
)
50
name
=
"wcr-150gn"
51
;;
52
*
"V22RW-2X2"
)
53
name
=
"v22rw-2x2"
54
;;
55
*
"WHR-G300N"
)
56
name
=
"whr-g300n"
57
;;
58
*
"WZR-AGL300NH"
)
59
name
=
"wzr-agl300nh"
60
;;
61
*)
62
name
=
"generic"
63
;;
64
esac
65
66
echo
$name
67
}
This page took
0.048241 seconds
and
5
git commands to generate.