summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc/model/cbi
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-01-13 07:44:29 +0100
committerMathias Kresin <dev@kresin.me>2018-01-13 07:46:36 +0100
commitcfdeaa91fa6be17069eb215df73dd6fc840df122 (patch)
tree66a39b3a187183b493180d48ea43024325a07a16 /modules/luci-mod-admin-full/luasrc/model/cbi
parent31f5c6a6ae263c6a7921bc50957e23c159e552e8 (diff)
luci-mod-admin-full: set 0 db DSL SNR offset by default
If no DSL SNR offset is set for the dsl line the first entry from the dropdown list is pre-selected by default, which would apply a -10 db offset by default. Pre-select the 0 db option if nothing else is specified in the uci config files. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/model/cbi')
-rw-r--r--modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua
index 57451181e..2bfe974af 100644
--- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua
+++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua
@@ -56,6 +56,7 @@ if fs.access("/etc/init.d/dsl_control") then
line_mode:value("vdsl", translate("VDSL"))
ds_snr = dsl:option(ListValue, "ds_snr_offset", translate("Downstream SNR offset"))
+ ds_snr.default = "0"
for i = -100, 100, 5 do
ds_snr:value(i, translatef("%.1f dB", i / 10))
end