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
|
||||
|
||||
PKG_NAME:=fff-nodewatcher
|
||||
PKG_VERSION:=39
|
||||
PKG_VERSION:=40
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-nodewatcher
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Netmon Nodewatcher (C) 2010-2012 Freifunk Oldenburg
|
||||
# License; GPL v3
|
||||
|
||||
SCRIPT_VERSION="39"
|
||||
SCRIPT_VERSION="40"
|
||||
|
||||
test -f /tmp/started || exit
|
||||
|
||||
|
@ -58,7 +58,7 @@ crawl() {
|
|||
hostname="$(cat /proc/sys/kernel/hostname)"
|
||||
description="$(uci get system.@system[0].description)"
|
||||
if [ -n "$description" ]; then
|
||||
description="<description>$description</description>"
|
||||
description="<description><![CDATA[$description]]></description>"
|
||||
fi
|
||||
latitude="$(uci get system.@system[0].latitude)"
|
||||
longitude="$(uci get system.@system[0].longitude)"
|
||||
|
@ -67,7 +67,7 @@ crawl() {
|
|||
fi
|
||||
position_comment="$(uci get system.@system[0].position_comment)"
|
||||
if [ -n "$position_comment" ]; then
|
||||
position_comment="<position_comment>$position_comment</position_comment>"
|
||||
position_comment="<position_comment><![CDATA[$position_comment]]></position_comment>"
|
||||
fi
|
||||
contact="$(uci get system.@system[0].contact)"
|
||||
if [ -n "$contact" ]; then
|
||||
|
|
Loading…
Reference in New Issue