diff --git a/autostart_mobile_measurement.sh b/autostart_mobile_measurement.sh index da8f592..3c065c6 100755 --- a/autostart_mobile_measurement.sh +++ b/autostart_mobile_measurement.sh @@ -4,6 +4,31 @@ WORKING_DIR="/home/prause/measurement-scripts/" DATE=$(date +%F_%H-%M-%S) NEW_DIR="/home/prause/mobile_measurements/$DATE/" +ethtool -k wwan1 +STATE=$? + +if test $STATE -ne 0 +then +for n in 1 2 3 ; do + for f in 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600; do + beep -f $f -l 20 + done +done +exit 1 +fi + +/root/connect-modem.py -l telekom + +if test $STATE -ne 0 +then +for n in 1 2 3 ; do + for f in 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600; do + beep -f $f -l 20 + done +done +exit 1 +fi + export PIPENV_VENV_IN_PROJECT=1 mkdir $NEW_DIR cd $WORKING_DIR @@ -17,4 +42,5 @@ pipenv run pipenv run ./measurement_main.py -c 130.75.73.69 \ -n 600 \ --folder $NEW_DIR \ --prefix automated_$DATE \ - -i wwan0 \ No newline at end of file + -i wwan0 \ + | tee $NEW_DIR/automated_$DATE_measurement.log \ No newline at end of file