Skip to content
Snippets Groups Projects
Commit a2539ead authored by Nils Schneider's avatar Nils Schneider
Browse files

configmode: show current bandwidth limit in wizard

parent b0b95ae1
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,14 @@ o = s:option(Flag, "_meshvpn", "Mesh-VPN aktivieren?")
o.default = string.format("%d", uci:get("fastd", meshvpn_name, "enabled", "0"))
o.rmempty = false
local upstream, downstream
upstream = string.format("%d KBit/s", uci:get_first("freifunk", "bandwidth", "upstream"))
downstream = string.format("%d KBit/s", uci:get_first("freifunk", "bandwidth", "downstream"))
o = s:option(Flag, "_bwlimit", "Bandbreitenbegrenzung aktivieren?")
o.default = string.format("%d", uci:get_first("freifunk", "bandwidth", "enabled", "0"))
o.rmempty = false
o.description = downstream .. " Downstream / " .. upstream .. " Upstream"
o = s:option(Flag, "_autoupdate", "Automatische Updates aktivieren?")
o.default = string.format("%d", uci:get_first("autoupdater", "autoupdater", "enabled", "0"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment