Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
d99a91eb
Commit
d99a91eb
authored
Dec 01, 2014
by
Roger Pueyo Centelles
Browse files
Fix location longitude value for Libremap
parent
b2b01b61
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/qmp/qmp_system.sh
View file @
d99a91eb
...
...
@@ -65,12 +65,12 @@ qmp_set_maps() {
[
$(
qmp_uci_get services.libremap
)
-eq
1
]
&&
{
qmp_uci_get_raw libremap.location
&&
{
local
lat
=
"
$(
qmp_uci_get node.latitude
)
"
local
lon
=
"
$(
qmp_uci_get node.l
at
itude
)
"
local
lon
=
"
$(
qmp_uci_get node.l
ong
itude
)
"
local
elev
=
"
$(
qmp_uci_get node.elevation
)
"
[
-n
"
$lat
"
]
&&
[
-n
"
$lon
"
]
&&
{
elev
=
${
elev
:-
0
}
qmp_uci_set_raw libremap.location.latitude
=
"
$lat
"
qmp_uci_set_raw libremap.location.l
at
itude
=
"
$lon
"
qmp_uci_set_raw libremap.location.l
ong
itude
=
"
$lon
"
qmp_uci_set_raw libremap.location.elev
=
"
$elev
"
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment