Initial commit

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-12-31 13:36:22 +01:00
commit 931652c494
78 changed files with 46976 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#!/bin/sh
#
# This script is needed for the Dockerfile since running gpsd with a RUN command doesn't seem to work
#
RED='\033[0;31m'
NC='\033[0m' # No Color
echo "Log Level: $RUST_LOG"
echo "Rocket Config: $ROCKET_CONFIG"
echo "GNSS ENABLED: $GNSS_ENABLED"
if [ "$GNSS_ENABLED" = true ]; then
echo "GNSS Device Path: $GNSS_DEV"
gpsd -n -G -S 2947 -F /var/run/gpsd.sock $GNSS_DEV
else
echo "${RED}GNSS is DISABLED${NC}"
fi
mkdir /pcap/
touch /pcap/receiver.pcap
tcpdump -i eth0 -w /pcap/receiver.pcap &
sleep 5
mkdir /output/
if [ "$GNSS_ENABLED" = true ]; then
videoprobe -p "/pcap/receiver.pcap" -o "/output/videoprobe_$(date '+%s').log"
else
videoprobe -p "/pcap/receiver.pcap" -o "/output/videoprobe_$(date '+%s').log" -d
fi