feature: provided lat/lon/gridsquare purge ability

This commit is contained in:
Darryl Quinn 2015-12-07 15:47:12 -06:00
parent e1d4c82256
commit fa0e128104
1 changed files with 7 additions and 0 deletions

View File

@ -447,12 +447,19 @@ if($parms{button_location})
{
system "echo '$parms{gridsquare}' > /etc/gridsquare" if $parms{gridsquare};
push @loc_output, "Gridsquare updated.\n";
} else {
system "rm -f /etc/gridsquare";
push @loc_output, "Gridsquare purged.\n";
}
if($parms{latitude} and $parms{longitude})
{
system "echo '$parms{latitude}' > /etc/latlon";
system "echo '$parms{longitude}' >> /etc/latlon";
push @loc_output, "Lat/Lon updated.\n";
} else {
system "rm -f /etc/latlon";
push @loc_output, "Lat/Lon purged.\n";
}
}