[PATCH 4/7] fff-nodewatcher: add platform as chipset

Tobias Klaus tk+ff at meskal.net
Fr Mai 27 11:28:23 CEST 2016


Reviewed-by: Tobias Klaus <tk+ff at meskal.net>

On Samstag, 14. Mai 2016 14:32:21 CEST Tim Niemeyer wrote:
> 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>
> ---
> 
>  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
> 13fa5f5..cb568f4 100755
> --- a/src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher
> +++ b/src/packages/fff/fff-nodewatcher/files/usr/sbin/nodewatcher
> @@ -85,6 +85,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`"

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 819 bytes
Beschreibung: This is a digitally signed message part.
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20160527/1745ffad/attachment-0002.sig>


Mehr Informationen über die Mailingliste franken-dev