From 4717ab051c9f054a8b1cfc3136f92826f5bb0da0 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Wed, 29 May 2024 16:44:00 -0700 Subject: [PATCH] Drop default quality (#1227) We calculate quality differently (ie. correctly) so drop the default minimum to avoid too many nasty suprises. --- files/etc/uci-defaults/80_aredn_lqm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/files/etc/uci-defaults/80_aredn_lqm b/files/etc/uci-defaults/80_aredn_lqm index e130e3be..2aff34e8 100755 --- a/files/etc/uci-defaults/80_aredn_lqm +++ b/files/etc/uci-defaults/80_aredn_lqm @@ -17,3 +17,10 @@ __EOF__ /sbin/uci -c $c commit aredn fi done + +if [ "$(/sbin/uci -q get aredn.@lqm[0].min_quality)" = "50" ]; then + /sbin/uci -q set aredn.@lqm[0].min_quality=35 + /sbin/uci -q -c /etc/config.mesh set aredn.@lqm[0].min_quality=35 + /sbin/uci commit aredn + /sbin/uci -c /etc/config.mesh commit aredn +fi