mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add interface to vnstat when added via wizard
This commit is contained in:
parent
827da5914a
commit
c54350533e
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,8 @@ function wizard_add()
|
||||||
ucic:save("sqm")
|
ucic:save("sqm")
|
||||||
ucic:commit("sqm")
|
ucic:commit("sqm")
|
||||||
|
|
||||||
|
luci.sys.call("uci -q add_list vnstat.@vnstat[-1].interface=wan" .. i)
|
||||||
|
|
||||||
-- Dirty way to add new interface to firewall...
|
-- Dirty way to add new interface to firewall...
|
||||||
luci.sys.call("uci -q add_list firewall.@zone[1].network=wan" .. i)
|
luci.sys.call("uci -q add_list firewall.@zone[1].network=wan" .. i)
|
||||||
luci.sys.call("uci -q commit firewall")
|
luci.sys.call("uci -q commit firewall")
|
||||||
|
@ -124,6 +126,7 @@ function wizard_add()
|
||||||
ucic:delete("qos",intf)
|
ucic:delete("qos",intf)
|
||||||
ucic:save("qos")
|
ucic:save("qos")
|
||||||
ucic:commit("qos")
|
ucic:commit("qos")
|
||||||
|
luci.sys.call("uci -q del_list vnstat.@vnstat[-1].interface=" .. intf)
|
||||||
end
|
end
|
||||||
gostatus = false
|
gostatus = false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue