Skip to content
Snippets Groups Projects
Commit 434dff19 authored by Tim Niemeyer's avatar Tim Niemeyer Committed by Tobias Klaus
Browse files

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: default avatarTim Niemeyer <tim@tn-x.org>
Reviewed-by: default avatarJan Kraus <mayosemmel@gmail.com>
Reviewed-by: default avatarTobias Klaus <tk+ff@meskal.net>
parent cd60e634
No related branches found
No related tags found
No related merge requests found
...@@ -84,6 +84,7 @@ crawl() { ...@@ -84,6 +84,7 @@ crawl() {
cpu=$(awk -F': ' ' cpu=$(awk -F': ' '
/model/ { printf "<cpu>"$2"</cpu>" } /model/ { printf "<cpu>"$2"</cpu>" }
/system type/ { printf "<chipset>"$2"</chipset>" } /system type/ { printf "<chipset>"$2"</chipset>" }
/platform/ { printf "<chipset>"$2"</chipset>" }
' /proc/cpuinfo) ' /proc/cpuinfo)
model="<model>$(cat /var/sysinfo/model)</model>" model="<model>$(cat /var/sysinfo/model)</model>"
local_time="`date +%s`" local_time="`date +%s`"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment