Add settings.env file and update recipient check in runtest.sh
This commit is contained in:
parent
c418c0e1d0
commit
f5bb552a27
2 changed files with 21 additions and 13 deletions
22
runtest.sh
22
runtest.sh
|
@ -1,19 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SCRIPT_DIRECTORY="/home/yaro/wifi_test"
|
source settings.env
|
||||||
RECIPIENT=conrad.nelson@nebraska.gov
|
|
||||||
NUM_TESTS=1
|
# Check if email recipient is set
|
||||||
NUM_SAMPLES=5
|
if [ -z "$RECIPIENT" ]; then
|
||||||
TIME_BETWEEN=15m
|
echo "[!] Please set the RECIPIENT variable in settings.env."
|
||||||
INTERFACE=wlan0
|
exit 1
|
||||||
BOOT_ID=$(cat /proc/sys/kernel/random/boot_id)
|
fi
|
||||||
TEST_FILE="/home/yaro/${BOOT_ID}-speedtest.csv"
|
|
||||||
PING_COUNT=25
|
BOOT_ID=$(cat /proc/sys/kernel/random/boot_id)
|
||||||
PING_TARGET=1.1.1.1
|
|
||||||
KISMET_LOG_DIR="/home/yaro/kismet_logs"
|
|
||||||
LEAD_TIME=90s
|
|
||||||
|
|
||||||
ENRICHED_FILE="${TEST_FILE%}+rf.csv"
|
|
||||||
|
|
||||||
sudo -v
|
sudo -v
|
||||||
|
|
||||||
|
|
12
settings.env
Normal file
12
settings.env
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
SCRIPT_DIRECTORY="${HOME}/wifi_test"
|
||||||
|
KISMET_LOG_DIR="${HOME}/kismet_logs"
|
||||||
|
ENRICHED_FILE="${TEST_FILE%}+rf.csv"
|
||||||
|
NUM_TESTS=1
|
||||||
|
NUM_SAMPLES=5
|
||||||
|
TIME_BETWEEN=15m
|
||||||
|
LEAD_TIME=90s
|
||||||
|
INTERFACE=wlan0
|
||||||
|
PING_COUNT=25
|
||||||
|
PING_TARGET=1.1.1.1
|
||||||
|
RECIPIENT=
|
||||||
|
TEST_FILE="${HOME}/${BOOT_ID}-speedtest.csv"
|
Loading…
Add table
Add a link
Reference in a new issue