mirror of https://github.com/aredn/aredn.git
feature: add aam_refresh method to advanced config page (#511)
This commit is contained in:
parent
3b4ac70028
commit
3298de7fb8
|
@ -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`;
|
||||
|
|
Loading…
Reference in New Issue