[PATCH] Fixed unwanted reboot every 5 Minutes after -n flash
Jan Kraus
mayosemmel at googlemail.com
Di Dez 27 13:38:16 CET 2016
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 <mayosemmel at gmail.com>
---
.../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
--
2.1.4
Mehr Informationen über die Mailingliste franken-dev