From a2539ead029cdaa3fd39e5c2fbab18eb2f944516 Mon Sep 17 00:00:00 2001
From: Nils Schneider <nils@nilsschneider.net>
Date: Mon, 30 Sep 2013 15:14:01 +0200
Subject: [PATCH] configmode: show current bandwidth limit in wizard

---
 .../files/usr/lib/lua/luci/model/cbi/configmode/wizard.lua   | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/gluon-config-mode/files/usr/lib/lua/luci/model/cbi/configmode/wizard.lua b/package/gluon-config-mode/files/usr/lib/lua/luci/model/cbi/configmode/wizard.lua
index 59d56aaa3..44fcce2d3 100644
--- a/package/gluon-config-mode/files/usr/lib/lua/luci/model/cbi/configmode/wizard.lua
+++ b/package/gluon-config-mode/files/usr/lib/lua/luci/model/cbi/configmode/wizard.lua
@@ -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"))
-- 
GitLab