From 6f8a419ec254cb56924813369ddad3ed70de32d9 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Fri, 11 Apr 2025 08:56:48 -0500 Subject: [PATCH] Start kismet and stop it when the script is run. --- runtest.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/runtest.sh b/runtest.sh index 722be3c..9a6e651 100755 --- a/runtest.sh +++ b/runtest.sh @@ -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