mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
Fix config apply after update
This commit is contained in:
parent
383b5b72d4
commit
f68d40c4d4
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ _setup_wan_interface() {
|
|||
config_load network
|
||||
config_foreach _setup_macvlan_update interface
|
||||
|
||||
if [ "$(uci -q get network.lan.multipath)" != "" ]; then
|
||||
if [ "$(uci -q show network | 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.wan1 | grep multipath)" = "" ]; then
|
||||
if [ "$(uci -q show network | grep multipath)" = "" ]; then
|
||||
if [ "$(swconfig list 2>&1 | grep switch0)" != "" ]; then
|
||||
_setup_wan_interface wan1 eth0.1 master
|
||||
_setup_wan_interface wan2 eth0.2 on
|
||||
|
|
Loading…
Reference in a new issue