1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix config apply after update really and remove luci-app-firewall

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-01-03 18:26:24 +01:00
parent fe81910e2b
commit 0efde1e48a
41 changed files with 2 additions and 26799 deletions

View file

@ -64,7 +64,7 @@ _setup_wan_interface() {
config_load network
config_foreach _setup_macvlan_update interface
if [ "$(uci -q show network | grep multipath)" != "" ]; then
if [ "$(uci -q show network.lan | grep multipath)" != "" ]; then
exit 0
fi
@ -150,7 +150,7 @@ uci -q set network.lan.ip4table='lan'
#uci -q set "network.lan.ip6assign=64"
# Create WAN interfaces
if [ "$(uci -q show network | grep multipath)" = "" ]; then
if [ "$(uci -q show network.wan1 | grep multipath)" = "" ] && [ "$(uci -q show macvlan)" = "" ]; then
if [ "$(swconfig list 2>&1 | grep switch0)" != "" ]; then
_setup_wan_interface wan1 eth0.1 master
_setup_wan_interface wan2 eth0.2 on