From patchwork Tue Dec 27 12:38:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fixed unwanted reboot every 5 Minutes after -n flash From: Jan Kraus X-Patchwork-Id: 265 Message-Id: <1482842296-28702-1-git-send-email-mayosemmel@gmail.com> To: franken-dev@freifunk.net Cc: Jan Kraus Date: Tue, 27 Dec 2016 13:38:16 +0100 The error only occurs if there isn't any network connection. Closes https://mantis.freifunk-franken.de/view.php?id=23 Signed-off-by: Jan Kraus Reviewed-by: Tim Niemeyer --- .../fff/fff-sysupgrade/files/usr/sbin/copy_netmon_coordinates.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/packages/fff/fff-sysupgrade/files/usr/sbin/copy_netmon_coordinates.sh b/src/packages/fff/fff-sysupgrade/files/usr/sbin/copy_netmon_coordinates.sh index 4c20974..1448014 100755 --- a/src/packages/fff/fff-sysupgrade/files/usr/sbin/copy_netmon_coordinates.sh +++ b/src/packages/fff/fff-sysupgrade/files/usr/sbin/copy_netmon_coordinates.sh @@ -26,6 +26,9 @@ xml_data=$( wget -q -O - "http://fe80::ff:feee:1%br-mesh/api/rest/api.php?rquest if [ -z "$xml_data" ]; then echo "xml_data is not set" exit 1 +elif echo "$xml_data"|grep "can't connect to remote host" ;then + echo "The Netmon Server cannot be reached." + exit 1 elif echo "$xml_data"|grep "HTTP/1.1 404 Not Found" ;then echo "This Router is not present in the Netmon Database." delete_myself