Explorar el Código

Adds error notification as sound for a faulty interface.

master
Lukas Prause hace 3 años
padre
commit
20a70979c1
Se han modificado 1 ficheros con 27 adiciones y 1 borrados
  1. +27
    -1
      autostart_mobile_measurement.sh

+ 27
- 1
autostart_mobile_measurement.sh Ver fichero

@@ -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
-i wwan0 \
| tee $NEW_DIR/automated_$DATE_measurement.log

Cargando…
Cancelar
Guardar