mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 11:01:50 +00:00
This commit is contained in:
parent
73cdab2373
commit
7335b71bf1
1 changed files with 4 additions and 2 deletions
|
@ -154,7 +154,7 @@ function wizard_add()
|
||||||
local delete_intf = luci.http.formvaluetable("delete") or ""
|
local delete_intf = luci.http.formvaluetable("delete") or ""
|
||||||
if delete_intf ~= "" then
|
if delete_intf ~= "" then
|
||||||
for intf, _ in pairs(delete_intf) do
|
for intf, _ in pairs(delete_intf) do
|
||||||
local defif = ucic:set("network",intf,"ifname")
|
local defif = ucic:get("network",intf,"ifname")
|
||||||
ucic:delete("network",intf)
|
ucic:delete("network",intf)
|
||||||
ucic:delete("network",intf .. "_dev")
|
ucic:delete("network",intf .. "_dev")
|
||||||
ucic:save("network")
|
ucic:save("network")
|
||||||
|
@ -165,7 +165,9 @@ function wizard_add()
|
||||||
ucic:delete("qos",intf)
|
ucic:delete("qos",intf)
|
||||||
ucic:save("qos")
|
ucic:save("qos")
|
||||||
ucic:commit("qos")
|
ucic:commit("qos")
|
||||||
|
if defif ~= "" then
|
||||||
luci.sys.call("uci -q del_list vnstat.@vnstat[-1].interface=" .. defif)
|
luci.sys.call("uci -q del_list vnstat.@vnstat[-1].interface=" .. defif)
|
||||||
|
end
|
||||||
luci.sys.call("uci -q commit vnstat")
|
luci.sys.call("uci -q commit vnstat")
|
||||||
luci.sys.call("uci -q del_list firewall.@zone[1].network=" .. intf)
|
luci.sys.call("uci -q del_list firewall.@zone[1].network=" .. intf)
|
||||||
luci.sys.call("uci -q commit firewall")
|
luci.sys.call("uci -q commit firewall")
|
||||||
|
|
Loading…
Reference in a new issue