nodewatcher: add the router model

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
This commit is contained in:
Tim Niemeyer 2015-10-10 10:24:58 +02:00
parent 913ccd1733
commit d6ac1df7ec
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# Netmon Nodewatcher (C) 2010-2012 Freifunk Oldenburg
# License; GPL v3
SCRIPT_VERSION="30"
SCRIPT_VERSION="31"
test -f /tmp/started || exit
@ -67,6 +67,7 @@ crawl() {
/model/ { printf "<cpu>"$2"</cpu>" }
/system type/ { printf "<chipset>"$2"</chipset>" }
' /proc/cpuinfo)
model="<model>$(uci get board.model.name)</model>"
local_time="`date +%s`"
load=$(awk '{ printf "<loadavg>"$3"</loadavg><processes>"$4"</processes>" }' /proc/loadavg)