mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +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"
|
[ -z "$mptcpmintf" ] && mptcpmintf="$config"
|
||||||
uci -q set network.${config}.defaultroute=0
|
uci -q set network.${config}.defaultroute=0
|
||||||
uci -q set network.${config}.peerdns=0
|
uci -q set network.${config}.peerdns=0
|
||||||
|
uci -q delete network.${config}.dns=0
|
||||||
echo '' > /etc/resolv.conf >/dev/null 2>&1
|
echo '' > /etc/resolv.conf >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
[ "$mode" = "master" ] && {
|
[ "$mode" = "master" ] && {
|
||||||
|
@ -575,8 +576,8 @@ start_service() {
|
||||||
uci -q set openmptcprouter.${intfmaster}.multipath="master"
|
uci -q set openmptcprouter.${intfmaster}.multipath="master"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
uci -q commit network
|
[ -n "$(uci -q changes network)" ] && uci -q commit network
|
||||||
uci -q commit openmptcprouter
|
[ -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')" ] && {
|
[ -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
|
ethtool --offload eth0 rx off tx off > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue