mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix add interface
This commit is contained in:
parent
06a8bab431
commit
6aa1b13111
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,7 @@ function wizard_add()
|
||||||
multipath_master = true
|
multipath_master = true
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
local defif = ucic:get("network","wan1","ifname") or "eth0"
|
local defif = ucic:get("network","wan1_dev","ifname") or "eth0"
|
||||||
ucic:set("network","wan" .. i,"interface")
|
ucic:set("network","wan" .. i,"interface")
|
||||||
ucic:set("network","wan" .. i,"ifname",defif)
|
ucic:set("network","wan" .. i,"ifname",defif)
|
||||||
ucic:set("network","wan" .. i,"proto","static")
|
ucic:set("network","wan" .. i,"proto","static")
|
||||||
|
@ -49,6 +49,7 @@ function wizard_add()
|
||||||
ucic:commit("network")
|
ucic:commit("network")
|
||||||
-- 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("/etc/init.d/macvlan restart >/dev/null 2>/dev/null")
|
luci.sys.call("/etc/init.d/macvlan restart >/dev/null 2>/dev/null")
|
||||||
gostatus = false
|
gostatus = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue