mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update luci-base and luci-mod-admin-full to latest version, disable nginx default script
This commit is contained in:
parent
7ba8d8d610
commit
139393bc8f
65 changed files with 7053 additions and 5523 deletions
|
@ -3,6 +3,7 @@
|
|||
-- Licensed to the public under the Apache License 2.0.
|
||||
|
||||
local fs = require "nixio.fs"
|
||||
local json = require "luci.jsonc"
|
||||
local sys = require "luci.sys"
|
||||
|
||||
m = Map("network", translate("Interfaces"))
|
||||
|
@ -10,8 +11,14 @@ m.pageaction = false
|
|||
m:section(SimpleSection).template = "admin_network/iface_overview"
|
||||
|
||||
if fs.access("/etc/init.d/dsl_control") then
|
||||
dsl = m:section(TypedSection, "dsl", translate("DSL"))
|
||||
local ok, boarddata = pcall(json.parse, fs.readfile("/etc/board.json"))
|
||||
local modemtype = (ok == true)
|
||||
and (type(boarddata) == "table")
|
||||
and (type(boarddata.dsl) == "table")
|
||||
and (type(boarddata.dsl.modem) == "table")
|
||||
and boarddata.dsl.modem.type
|
||||
|
||||
dsl = m:section(TypedSection, "dsl", translate("DSL"))
|
||||
dsl.anonymous = true
|
||||
|
||||
annex = dsl:option(ListValue, "annex", translate("Annex"))
|
||||
|
@ -38,14 +45,23 @@ if fs.access("/etc/init.d/dsl_control") then
|
|||
tone:value("b", translate("B43 + B43C"))
|
||||
tone:value("bv", translate("B43 + B43C + V43"))
|
||||
|
||||
xfer_mode = dsl:option(ListValue, "xfer_mode", translate("Encapsulation mode"))
|
||||
xfer_mode:value("atm", translate("ATM (Asynchronous Transfer Mode)"))
|
||||
xfer_mode:value("ptm", translate("PTM/EFM (Packet Transfer Mode)"))
|
||||
if modemtype == "vdsl" then
|
||||
xfer_mode = dsl:option(ListValue, "xfer_mode", translate("Encapsulation mode"))
|
||||
xfer_mode:value("", translate("auto"))
|
||||
xfer_mode:value("atm", translate("ATM (Asynchronous Transfer Mode)"))
|
||||
xfer_mode:value("ptm", translate("PTM/EFM (Packet Transfer Mode)"))
|
||||
|
||||
line_mode = dsl:option(ListValue, "line_mode", translate("DSL line mode"))
|
||||
line_mode:value("", translate("auto"))
|
||||
line_mode:value("adsl", translate("ADSL"))
|
||||
line_mode:value("vdsl", translate("VDSL"))
|
||||
line_mode = dsl:option(ListValue, "line_mode", translate("DSL line mode"))
|
||||
line_mode:value("", translate("auto"))
|
||||
line_mode:value("adsl", translate("ADSL"))
|
||||
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
|
||||
end
|
||||
|
||||
firmware = dsl:option(Value, "firmware", translate("Firmware File"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue