2025-11-11 22:40:06 +02:00

13 lines
295 B
Bash
Executable File

#!/bin/bash
. .env
IFACE=$THERMALCAM_IFACE
echo "using iface $IFACE"
echo "checking mtu"
mtu=$(ip link show ${IFACE} | grep -o 'mtu [0-9]*' | gawk '{print $2}')
echo "mtu = $mtu"
if [ $mtu -lt 9000 ]; then
echo "setting mtu to 9000"
sudo ip link set $IFACE mtu 9000
fi
sudo uv run ./replay.py