mirror of https://github.com/aredn/aredn.git
Meshoween: Better way to add new uci meshstatus section (#159)
This commit is contained in:
parent
9cac3db003
commit
1fd909b18d
|
@ -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>
|
||||
|
|
|
@ -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
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue