From eb60c91900ae157dbaa6e013b79780d985fb378c Mon Sep 17 00:00:00 2001 From: Steffen Pankratz Date: Mon, 16 Nov 2015 15:23:09 +0100 Subject: [PATCH] - use value from /var/sysinfo/model instead of /var/sysinfo/board_name for model property Signed-off-by: Steffen Pankratz Reviewed-by: Tim Niemeyer --- bsp/default/root_file_system/etc/nodewatcher.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/default/root_file_system/etc/nodewatcher.sh b/bsp/default/root_file_system/etc/nodewatcher.sh index 6ea66e38..8db5106d 100755 --- a/bsp/default/root_file_system/etc/nodewatcher.sh +++ b/bsp/default/root_file_system/etc/nodewatcher.sh @@ -2,7 +2,7 @@ # Netmon Nodewatcher (C) 2010-2012 Freifunk Oldenburg # License; GPL v3 -SCRIPT_VERSION="32" +SCRIPT_VERSION="33" test -f /tmp/started || exit @@ -68,7 +68,7 @@ crawl() { /model/ { printf ""$2"" } /system type/ { printf ""$2"" } ' /proc/cpuinfo) - model="$(uci get board.model.name)" + model="$(cat /var/sysinfo/model)" local_time="`date +%s`" load=$(awk '{ printf ""$3""$4"" }' /proc/loadavg)