start.sh sets mtu and sends the start packet

This commit is contained in:
devdesk 2024-02-17 15:31:29 +02:00
parent bba0e3a093
commit 5acd03828d
1 changed files with 12 additions and 0 deletions

12
start.sh Executable file
View File

@ -0,0 +1,12 @@
#!/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 venv/bin/python ./replay.py