Meshoween: Better way to add new uci meshstatus section (#159)

This commit is contained in:
Tim Wilkinson 2021-11-03 19:26:56 -07:00 committed by GitHub
parent 9cac3db003
commit 1fd909b18d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -8,3 +8,4 @@ Jason Brady - KF5DEB <kf5deb@arrl.net>
Eric Satterlee - KG6WXC <kg6wxc@gmail.com>
Ray Suelzer - KK6RAY <rsuelzer@gmail.com>
Steve Lewis - AB7PA <ab7pa.radio@gmail.com>
Tim Wilkinson - KN6PLV <tim.j.wilkinson@gmail.com>

View File

@ -0,0 +1,5 @@
#! /bin/sh
if [ "$(/sbin/uci -q get aredn.\@meshstatus[0])" = "" ]; then
/sbin/uci -q add aredn meshstatus
/sbin/uci -q commit aredn
fi

View File

@ -84,10 +84,6 @@ use perlfunc;
);
# Limit displayed nodes and services to the most reachable routes if memory on the node is small
if ( `/sbin/uci -q get aredn.\@meshstatus[0]` eq "" )
{
system "(/sbin/uci -q add aredn meshstatus; /sbin/uci -q commit aredn) > /dev/null";
}
%lowMemoryLimits = (
memory => `/sbin/uci -q get aredn.\@meshstatus[0].lowmem` || 10000,
routes => `/sbin/uci -q get aredn.\@meshstatus[0].lowroutes` || 1000,