forked from freifunk-franken/firmware
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:
parent
913ccd1733
commit
d6ac1df7ec
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue