mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +00:00
Force remove DNS on multipath interface and commit only if there is changes in mptcp init script
This commit is contained in:
parent
ef6122f316
commit
ce640fb56c
1 changed files with 3 additions and 2 deletions
|
@ -180,6 +180,7 @@ interface_multipath_settings() {
|
|||
[ -z "$mptcpmintf" ] && mptcpmintf="$config"
|
||||
uci -q set network.${config}.defaultroute=0
|
||||
uci -q set network.${config}.peerdns=0
|
||||
uci -q delete network.${config}.dns=0
|
||||
echo '' > /etc/resolv.conf >/dev/null 2>&1
|
||||
}
|
||||
[ "$mode" = "master" ] && {
|
||||
|
@ -575,8 +576,8 @@ start_service() {
|
|||
uci -q set openmptcprouter.${intfmaster}.multipath="master"
|
||||
}
|
||||
fi
|
||||
uci -q commit network
|
||||
uci -q commit openmptcprouter
|
||||
[ -n "$(uci -q changes network)" ] && uci -q commit network
|
||||
[ -n "$(uci -q changes openmptcprouter)" ] && uci -q commit openmptcprouter
|
||||
[ -n "$(ubus call system board | jsonfilter -e '@.board_name' | grep raspberry)" ] && [ -z "$(ubus call system board | jsonfilter -e '@.board_name' | grep '4-model-b')" ] && {
|
||||
ethtool --offload eth0 rx off tx off > /dev/null 2>&1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue