forked from freifunk-franken/firmware
Nodewatcher: interpret 'description' and 'position_comment' purely as textual data
Signed-off-by: Steffen Pankratz <kratz00@gmx.de> Reviewed-by: Tobias Klaus <tk+ff@meskal.net> Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
parent
bee682345a
commit
03e3104273
|
@ -1,7 +1,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=fff-nodewatcher
|
PKG_NAME:=fff-nodewatcher
|
||||||
PKG_VERSION:=39
|
PKG_VERSION:=40
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-nodewatcher
|
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-nodewatcher
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Netmon Nodewatcher (C) 2010-2012 Freifunk Oldenburg
|
# Netmon Nodewatcher (C) 2010-2012 Freifunk Oldenburg
|
||||||
# License; GPL v3
|
# License; GPL v3
|
||||||
|
|
||||||
SCRIPT_VERSION="39"
|
SCRIPT_VERSION="40"
|
||||||
|
|
||||||
test -f /tmp/started || exit
|
test -f /tmp/started || exit
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ crawl() {
|
||||||
hostname="$(cat /proc/sys/kernel/hostname)"
|
hostname="$(cat /proc/sys/kernel/hostname)"
|
||||||
description="$(uci get system.@system[0].description)"
|
description="$(uci get system.@system[0].description)"
|
||||||
if [ -n "$description" ]; then
|
if [ -n "$description" ]; then
|
||||||
description="<description>$description</description>"
|
description="<description><![CDATA[$description]]></description>"
|
||||||
fi
|
fi
|
||||||
latitude="$(uci get system.@system[0].latitude)"
|
latitude="$(uci get system.@system[0].latitude)"
|
||||||
longitude="$(uci get system.@system[0].longitude)"
|
longitude="$(uci get system.@system[0].longitude)"
|
||||||
|
@ -67,7 +67,7 @@ crawl() {
|
||||||
fi
|
fi
|
||||||
position_comment="$(uci get system.@system[0].position_comment)"
|
position_comment="$(uci get system.@system[0].position_comment)"
|
||||||
if [ -n "$position_comment" ]; then
|
if [ -n "$position_comment" ]; then
|
||||||
position_comment="<position_comment>$position_comment</position_comment>"
|
position_comment="<position_comment><![CDATA[$position_comment]]></position_comment>"
|
||||||
fi
|
fi
|
||||||
contact="$(uci get system.@system[0].contact)"
|
contact="$(uci get system.@system[0].contact)"
|
||||||
if [ -n "$contact" ]; then
|
if [ -n "$contact" ]; then
|
||||||
|
|
Loading…
Reference in New Issue