projects
/
openwrt
/
staging
/
chunkeey.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ixp4xx: add sysupgrade support
[openwrt/staging/chunkeey.git]
/
target
/
linux
/
ixp4xx
/
base-files
/
lib
/
ixp4xx.sh
1
#!/bin/sh
2
#
3
# Copyright (C) 2012 OpenWrt.org
4
#
5
6
ixp4xx_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 Cambria"
*)
14
name
=
"cambria"
15
;;
16
"Gateworks Avila"
*)
17
name
=
"avila"
18
;;
19
*)
20
name
=
"generic"
;
21
;;
22
esac
23
24
echo
$name
25
}