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

Fix omr-tracker

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-08-29 08:48:45 +02:00
parent 5b61ede069
commit 860849b075

View file

@ -190,6 +190,9 @@ while true; do
OMR_TRACKER_DEVICE_GATEWAY=""
fi
fi
if [ -z "$OMR_TRACKER_DEVICE_GATEWAY" ]; then
OMR_TRACKER_DEVICE_GATEWAY=$(ip -4 r list dev "$OMR_TRACKER_DEVICE" | awk '/proto kernel/ {print $1}' | tr -d "\n")
fi
# execute specific tracker
if [ -n "$OMR_TRACKER_DEVICE_IP" ] && [ -n "$OMR_TRACKER_DEVICE_GATEWAY" ]; then