forked from freifunk-franken/firmware
fff-nodewatcher: add platform as chipset
On some devices cpuinfo returns no "system type". For that devices the "platform" tag contains the relevant chipset information. Signed-off-by: Tim Niemeyer <tim@tn-x.org> Reviewed-by: Jan Kraus <mayosemmel@gmail.com> Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
This commit is contained in:
parent
cd60e63480
commit
434dff1929
|
@ -84,6 +84,7 @@ crawl() {
|
|||
cpu=$(awk -F': ' '
|
||||
/model/ { printf "<cpu>"$2"</cpu>" }
|
||||
/system type/ { printf "<chipset>"$2"</chipset>" }
|
||||
/platform/ { printf "<chipset>"$2"</chipset>" }
|
||||
' /proc/cpuinfo)
|
||||
model="<model>$(cat /var/sysinfo/model)</model>"
|
||||
local_time="`date +%s`"
|
||||
|
|
Loading…
Reference in New Issue