projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
linux/adm5120: add preliminary 2.6.36 kernel support (refresh patches)
[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
*
"DIR-300 revB"
)
14
name
=
"dir-300-b1"
15
;;
16
*
"La Fonera 2.0N"
)
17
name
=
"fonera20n"
18
;;
19
*
"V22RW-2X2"
)
20
name
=
"v22rw-2x2"
21
;;
22
*
"WHR-G300N"
)
23
name
=
"whr-g300n"
24
;;
25
*)
26
name
=
"generic"
27
;;
28
esac
29
30
echo
$name
31
}
This page took
0.050665 seconds
and
5
git commands to generate.