mirror of https://github.com/aredn/aredn.git
Turn LQM off when not enabled!! (#369)
This commit is contained in:
parent
b680d2019e
commit
988c7f251b
|
@ -154,6 +154,11 @@ local wlan = get_ifname("wifi")
|
||||||
|
|
||||||
function lqm()
|
function lqm()
|
||||||
|
|
||||||
|
if cursor:get("aredn", "@lqm[0]", "enable") ~= "1" then
|
||||||
|
exit_app()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
-- Let things startup for a while before we begin
|
-- Let things startup for a while before we begin
|
||||||
wait_for_ticks(math.max(1, 30 - nixio.sysinfo().uptime))
|
wait_for_ticks(math.max(1, 30 - nixio.sysinfo().uptime))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue