mirror of https://github.com/aredn/aredn.git
bugfix: test/update grid square to message appears when appropriate
This commit is contained in:
parent
2bbcb1598f
commit
e1d4c82256
|
@ -442,9 +442,12 @@ foreach(`zcat /etc/opkg.list.gz 2>/dev/null`)
|
||||||
# update location info
|
# update location info
|
||||||
#
|
#
|
||||||
if($parms{button_location})
|
if($parms{button_location})
|
||||||
|
{
|
||||||
|
if($parms{gridsquare})
|
||||||
{
|
{
|
||||||
system "echo '$parms{gridsquare}' > /etc/gridsquare" if $parms{gridsquare};
|
system "echo '$parms{gridsquare}' > /etc/gridsquare" if $parms{gridsquare};
|
||||||
push @loc_output, "Gridsquare updated.\n";
|
push @loc_output, "Gridsquare updated.\n";
|
||||||
|
}
|
||||||
if($parms{latitude} and $parms{longitude})
|
if($parms{latitude} and $parms{longitude})
|
||||||
{
|
{
|
||||||
system "echo '$parms{latitude}' > /etc/latlon";
|
system "echo '$parms{latitude}' > /etc/latlon";
|
||||||
|
|
Loading…
Reference in New Issue