提交 15c1b59c 编写于 作者: J Jo-Philipp Wich

luci-0.10: merge r7086

上级 c183fb87
...@@ -24,6 +24,7 @@ m.uci:foreach("network", "switch", ...@@ -24,6 +24,7 @@ m.uci:foreach("network", "switch",
local has_learn = nil local has_learn = nil
local has_vlan4k = nil local has_vlan4k = nil
local has_ptpvid = nil local has_ptpvid = nil
local has_jumbo3 = nil
local min_vid = 0 local min_vid = 0
local max_vid = 16 local max_vid = 16
local num_vlans = 16 local num_vlans = 16
...@@ -76,6 +77,8 @@ m.uci:foreach("network", "switch", ...@@ -76,6 +77,8 @@ m.uci:foreach("network", "switch",
elseif line:match(": enable_vlan4k") then elseif line:match(": enable_vlan4k") then
enable_vlan4k = true enable_vlan4k = true
elseif line:match(": max_length") then
has_jumbo3 = "max_length"
end end
end end
...@@ -133,6 +136,12 @@ m.uci:foreach("network", "switch", ...@@ -133,6 +136,12 @@ m.uci:foreach("network", "switch",
x.default = x.enabled x.default = x.enabled
end end
if has_jumbo3 then
x = s:option(Flag, has_jumbo3, translate("Enable Jumbo Frame passthrough"))
x.enabled = "3"
x.rmempty = true
end
if has_reset then if has_reset then
x = s:option(Flag, has_reset, translate("Reset switch during setup")) x = s:option(Flag, has_reset, translate("Reset switch during setup"))
x.default = x.enabled x.default = x.enabled
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册