[PATCH v2 4/7] fff-nodewatcher: add platform as chipset
mayosemmel
mayosemmel at googlemail.com
Sa Jun 11 23:22:03 CEST 2016
Hi Tim,
das Review von Tobias war da sogar schon dran.
Reviewed-by: Jan Kraus <mayosemmel at gmail.com>
Grüße Jan
Am Samstag, den 11.06.2016, 17:20 +0200 schrieb Tim Niemeyer:
> 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 at tn-x.org>
> ---
>
> Changes in v2:
> - Rebased with spaces
>
> src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher b/src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher
> index 6c75338..b343b84 100755
> --- a/src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher
> +++ b/src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher
> @@ -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`"
> --
> 2.1.4
>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 473 bytes
Beschreibung: This is a digitally signed message part
URL : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20160611/f2646247/attachment.sig>
Mehr Informationen über die Mailingliste franken-dev