Start kismet and stop it when the script is run.

This commit is contained in:
Yaro Kasear 2025-04-11 08:56:48 -05:00
parent 13749d3d1c
commit 6f8a419ec2

View file

@ -15,6 +15,13 @@ LEAD_TIME=90s
ENRICHED_FILE="${TEST_FILE%}+rf.csv"
sudo -v
while true; do sudo -n true; sleep 60; done 2>/dev/null &
SUDO_KEEPALIVE_PID=$!
sudo systemctl start kismet
sleep $LEAD_TIME
# Function to get current TX failed count
@ -106,3 +113,5 @@ python3 $SCRIPT_DIRECTORY/kismet_enrich_csv.py --csv $TEST_FILE --kismet "$KISME
echo "The test with UID ${BOOT_ID} is complete. Please collect the probe. Data is attached." | \
mutt -s "Test ${BOOT_ID} Complete" -a "$ENRICHED_FILE" -- "$RECIPIENT"
sudo systemctl stop kismet
sudo kill $SUDO_KEEPALIVE_PID