feature: add aam_refresh method to advanced config page (#511)

This commit is contained in:
dman776 2020-04-09 19:52:39 -05:00 committed by GitHub
parent 3b4ac70028
commit 3298de7fb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -140,6 +140,12 @@ push @setting, {
desc => "Value doesn't matter. Will restart OLSR when saving setting -- wait up to 2 or 3 minutes to receive response.",
postcallback => "olsr_restart()"
};
push @setting, {
key => "aredn.aam.refresh",
type => "boolean",
desc => "Value doesn't matter. Will attempt to pull any AREDN Alert messages.",
postcallback => "aam_refresh()"
};
# ----------------------------------------
@ -179,6 +185,12 @@ sub olsr_restart()
return $rc;
}
sub aam_refresh()
{
$rc=`/usr/local/bin/aredn_message.sh`;
return $rc;
}
sub writePackageRepo {
my $repo = @_[0];
my $uciurl = `uci get aredn.\@downloads[0].pkgs_$repo`;