mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
parent
71be972513
commit
dfd37d3188
1 changed files with 4 additions and 2 deletions
|
@ -428,7 +428,8 @@ function wizard_add()
|
||||||
local uploadspeed = luci.http.formvalue("cbid.sqm.%s.upload" % intf) or "0"
|
local uploadspeed = luci.http.formvalue("cbid.sqm.%s.upload" % intf) or "0"
|
||||||
local testspeed = luci.http.formvalue("cbid.sqm.%s.testspeed" % intf) or "0"
|
local testspeed = luci.http.formvalue("cbid.sqm.%s.testspeed" % intf) or "0"
|
||||||
|
|
||||||
if not ucic:get("qos",intf) ~= "" then
|
local qos_settings = ucic:get("qos",intf) or ""
|
||||||
|
if qos_settings == "" then
|
||||||
ucic:set("qos",intf,"interface")
|
ucic:set("qos",intf,"interface")
|
||||||
ucic:set("qos",intf,"classgroup","Default")
|
ucic:set("qos",intf,"classgroup","Default")
|
||||||
ucic:set("qos",intf,"enabled","0")
|
ucic:set("qos",intf,"enabled","0")
|
||||||
|
@ -436,7 +437,8 @@ function wizard_add()
|
||||||
ucic:set("qos",intf,"download","100000")
|
ucic:set("qos",intf,"download","100000")
|
||||||
end
|
end
|
||||||
|
|
||||||
if not ucic:get("sqm",intf) ~= "" then
|
local sqm_settings = ucic:get("sqm",intf) or ""
|
||||||
|
if sqm_settings == "" then
|
||||||
local defif = get_device(intf)
|
local defif = get_device(intf)
|
||||||
if defif == "" then
|
if defif == "" then
|
||||||
defif = ucic:get("network",intf,"device") or ""
|
defif = ucic:get("network",intf,"device") or ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue