1
0
Fork 0
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:
Ycarus 2018-07-05 10:44:47 +02:00
parent 06a8bab431
commit 6aa1b13111

View file

@ -33,7 +33,7 @@ function wizard_add()
multipath_master = true
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,"ifname",defif)
ucic:set("network","wan" .. i,"proto","static")
@ -49,6 +49,7 @@ function wizard_add()
ucic:commit("network")
-- 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 commit firewall")
luci.sys.call("/etc/init.d/macvlan restart >/dev/null 2>/dev/null")
gostatus = false