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

Use previous device if current device is unknown in 002-error post-tracking script of omr-tracker

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-12-13 19:43:42 +01:00
parent be703c65ad
commit b531347431

View file

@ -126,6 +126,8 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ] || { [ "$OMR_TRACKER_INTERFACE" != "omrvp
fi
. /lib/functions/network.sh
[ -z "$OMR_TRACKER_DEVICE" ] && OMR_TRACKER_DEVICE="$OMR_TRACKER_PREV_DEVICE"
# Get the current multipath status
multipath_status="off"
# [ "$OMR_TRACKER_INTERFACE" = "omrvpn" ] && multipath $OMR_TRACKER_DEVICE off >/dev/null 2>&1