Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
packages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Firmware
packages
Commits
435e87b2
Commit
435e87b2
authored
9 years ago
by
Jan-Tarek Butt
Browse files
Options
Downloads
Patches
Plain Diff
remove geolocation sync code
parent
e4189d11
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configurator/files/lib/ffnw/configurator/configurator.sh
+0
-21
0 additions, 21 deletions
configurator/files/lib/ffnw/configurator/configurator.sh
with
0 additions
and
21 deletions
configurator/files/lib/ffnw/configurator/configurator.sh
+
0
−
21
View file @
435e87b2
...
...
@@ -150,27 +150,6 @@ autoadd_ipv6_address() {
fi
}
sync_geo_location
(){
if
[[
$(
awk
'BEGIN{srand();print int(rand()*100)}'
)
-lt
5
]]
;
then
mac
=
$(
uci get wireless.mesh_radio0.macaddr
)
coords
=
"
$(
wget
-q
-O
-
"http://
${
API_IPV6_ADRESS
}
/getcoords.php?mac=
$mac
"
)
"
echo
"
$coords
"
|
grep
"[0-9]
\{
1,3
\}\(\.
[0-9]
\)
* [0-9]
\{
1,3
\}\(\.
[0-9]
\)
*"
if
[
"
$?
"
=
"0"
]
;
then
lat
=
"
$(
echo
"
$coords
"
|
cut
-d
' '
-f1
)
"
lon
=
"
$(
echo
"
$coords
"
|
cut
-d
' '
-f2
)
"
#echo "lon: $lon,lat: $lat"
uci
set
gluon-node-info.@location[0].latitude
=
$lat
uci
set
gluon-node-info.@location[0].longitude
=
$lon
uci
set
gluon-node-info.@location[0].share_location
=
1
uci commit gluon-node-info.@location[0]
fi
fi
}
sync_geo_location
if
[
$CRAWL_METHOD
==
"login"
]
;
then
err
"Authentification method is: username and passwort"
elif
[
$CRAWL_METHOD
==
"hash"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment