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

Run MPTCP config only if needed

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-03-18 15:48:24 +01:00
parent 835dea3b26
commit 3dab748b13

View file

@ -5,6 +5,10 @@
/etc/init.d/mptcp enabled || exit 0 /etc/init.d/mptcp enabled || exit 0
logger -t "mptcp" "Reloading mptcp config due to $ACTION of $INTERFACE ($DEVICE)" if [ -z "$(echo $DEVICE | grep oip | grep gre)" ]; then
/etc/init.d/mptcp reload "$DEVICE" >/dev/null || exit 0 logger -t "mptcp" "Reloading mptcp config due to $ACTION of $INTERFACE ($DEVICE)"
/etc/init.d/mptcp reload "$DEVICE" >/dev/null || exit 0
else
multipath $DEVICE off 2>&1 >/dev/null
fi