projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
476f9be21de095c3cf8e0b65584b98319e5f8acb
[openwrt/openwrt.git]
/
target
/
linux
/
cns3xxx
/
base-files
/
lib
/
cns3xxx.sh
1
#!/bin/sh
2
#
3
# Copyright (C) 2012 OpenWrt.org
4
#
5
6
cns3xxx_board_name
() {
7
local
machine
8
local
name
9
10
machine
=
$
(
awk
'BEGIN{FS="[
\t
]+:[
\t
]"} /Hardware/ {print
$2
}'
/
proc
/
cpuinfo
)
11
12
case
"
$machine
"
in
13
"Gateworks Corporation Laguna"
*)
14
name
=
"laguna"
15
;;
16
*)
17
name
=
"generic"
;
18
;;
19
esac
20
21
echo
$name
22
}