From 4d64af0307ba67e139beb22134db466b17249f99 Mon Sep 17 00:00:00 2001
From: Eike B <derbaranator@gmail.com>
Date: Thu, 9 Apr 2015 23:34:05 +0200
Subject: [PATCH] probability set to 5 percent

---
 configurator/files/lib/ffnw/configurator/configurator.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configurator/files/lib/ffnw/configurator/configurator.sh b/configurator/files/lib/ffnw/configurator/configurator.sh
index 0186fcf..61fc955 100644
--- a/configurator/files/lib/ffnw/configurator/configurator.sh
+++ b/configurator/files/lib/ffnw/configurator/configurator.sh
@@ -152,7 +152,7 @@ autoadd_ipv6_address() {
 
 
 sync_geo_location(){
-	if [[ $(awk 'BEGIN{srand();print int(rand()*100)}') -lt 50 ]];then
+	if [[ $(awk 'BEGIN{srand();print int(rand()*100)}') -lt 5 ]];then
 		mac=$(uci get wireless.mesh_radio0.macaddr)
 		coords="$(wget -q -O - "http://[fd74:fdaa:9dc4::1]/getcoords.php?mac=$mac")"
 		echo "$coords" | grep "[0-9]\{1,3\}\(\.[0-9]\)* [0-9]\{1,3\}\(\.[0-9]\)*"
-- 
GitLab