1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41: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:
Ycarus (Yannick Chabanois) 2024-09-18 19:37:01 +02:00
parent ef6122f316
commit ce640fb56c

View file

@ -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
}