Start kismet and stop it when the script is run.
This commit is contained in:
parent
13749d3d1c
commit
6f8a419ec2
1 changed files with 9 additions and 0 deletions
|
@ -15,6 +15,13 @@ LEAD_TIME=90s
|
||||||
|
|
||||||
ENRICHED_FILE="${TEST_FILE%}+rf.csv"
|
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
|
sleep $LEAD_TIME
|
||||||
|
|
||||||
# Function to get current TX failed count
|
# 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." | \
|
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"
|
mutt -s "Test ${BOOT_ID} Complete" -a "$ENRICHED_FILE" -- "$RECIPIENT"
|
||||||
|
|
||||||
|
sudo systemctl stop kismet
|
||||||
|
sudo kill $SUDO_KEEPALIVE_PID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue