Skip to content

Commit

Permalink
Reload MPTCP config when interface is up
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Nov 26, 2024
1 parent 5dc6df3 commit 4a4ab3d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mptcp/files/etc/hotplug.d/iface/30-mptcp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
/etc/init.d/mptcp enabled || exit 0


#if [ "$ACTION" = ifup -o "$ACTION" = ifupdate -o "$ACTION" = iflink ] && [ -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
if [ "$ACTION" = ifdown ]; then
if [ "$ACTION" = ifup -o "$ACTION" = ifupdate -o "$ACTION" = iflink ] && [ -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
elif [ "$ACTION" = ifdown ]; then
multipath $DEVICE off 2>&1 >/dev/null
fi

0 comments on commit 4a4ab3d

Please sign in to comment.