mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix for lan interface settings in wizard
This commit is contained in:
parent
ed350358f7
commit
b3bfe73e33
1 changed files with 8 additions and 6 deletions
|
@ -230,16 +230,18 @@ function wizard_add()
|
||||||
local sqmenabled = luci.http.formvalue("cbid.sqm.%s.enabled" % intf) or "0"
|
local sqmenabled = luci.http.formvalue("cbid.sqm.%s.enabled" % intf) or "0"
|
||||||
local multipath = luci.http.formvalue("cbid.sqm.%s.multipath" % intf) or "on"
|
local multipath = luci.http.formvalue("cbid.sqm.%s.multipath" % intf) or "on"
|
||||||
local lan = luci.http.formvalue("cbid.sqm.%s.lan" % intf) or "0"
|
local lan = luci.http.formvalue("cbid.sqm.%s.lan" % intf) or "0"
|
||||||
if typeintf == "normal" then
|
if typeintf ~= "" then
|
||||||
typeintf = ""
|
if typeintf == "normal" then
|
||||||
|
typeintf = ""
|
||||||
|
end
|
||||||
|
ucic:set("network",intf,"type",typeintf)
|
||||||
end
|
end
|
||||||
ucic:set("network",intf,"type",typeintf)
|
if typeintf == "macvlan" and masterintf ~= "" then
|
||||||
if typeintf == "macvlan" then
|
|
||||||
ucic:set("network",intf,"type","macvlan")
|
ucic:set("network",intf,"type","macvlan")
|
||||||
ucic:set("network",intf,"masterintf",masterintf)
|
ucic:set("network",intf,"masterintf",masterintf)
|
||||||
elseif typeintf == "" and (proto == "static" or proto == "dhcp" ) then
|
elseif typeintf == "" and ifname ~= "" and (proto == "static" or proto == "dhcp" ) then
|
||||||
ucic:set("network",intf,"ifname",ifname)
|
ucic:set("network",intf,"ifname",ifname)
|
||||||
elseif typeintf == "" and (proto == "ncm" or proto == "qmi" or proto == "modemmanager") then
|
elseif typeintf == "" and device ~= "" and (proto == "ncm" or proto == "qmi" or proto == "modemmanager") then
|
||||||
ucic:set("network",intf,"device",device)
|
ucic:set("network",intf,"device",device)
|
||||||
end
|
end
|
||||||
if proto ~= "other" then
|
if proto ~= "other" then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue