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:
parent
835dea3b26
commit
3dab748b13
1 changed files with 6 additions and 2 deletions
|
@ -5,6 +5,10 @@
|
|||
|
||||
/etc/init.d/mptcp enabled || exit 0
|
||||
|
||||
if [ -z "$(echo $DEVICE | grep oip | grep gre)" ]; then
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue