From 5acd03828dc51d2d8f702fb409f1bfe2af051010 Mon Sep 17 00:00:00 2001 From: devdesk Date: Sat, 17 Feb 2024 15:31:29 +0200 Subject: [PATCH] start.sh sets mtu and sends the start packet --- start.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 start.sh diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..a4c9b60 --- /dev/null +++ b/start.sh @@ -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