1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Reload MPTCP config when interface is up

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-11-26 14:30:39 +01:00
parent 5dc6df3858
commit 4a4ab3d746

View file

@ -6,11 +6,10 @@
/etc/init.d/mptcp enabled || exit 0 /etc/init.d/mptcp enabled || exit 0
#if [ "$ACTION" = ifup -o "$ACTION" = ifupdate -o "$ACTION" = iflink ] && [ -z "$(echo $DEVICE | grep oip | grep gre)" ]; 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)" logger -t "mptcp" "Reloading mptcp config due to $ACTION of $INTERFACE ($DEVICE)"
# /etc/init.d/mptcp reload "$DEVICE" >/dev/null || exit 0 /etc/init.d/mptcp reload "$DEVICE" >/dev/null || exit 0
#else elif [ "$ACTION" = ifdown ]; then
if [ "$ACTION" = ifdown ]; then
multipath $DEVICE off 2>&1 >/dev/null multipath $DEVICE off 2>&1 >/dev/null
fi fi