Verified Commit e87c66ae authored by Martin Prudek's avatar Martin Prudek
Browse files

lte-metr: Change default location for CSVs

parent 16ccb2d3
......@@ -40,7 +40,8 @@ while true; do
# Check that default route is via LTE interface
while [ -z "$(ip r | grep default | grep wwan)" ]; do sleep 1; done;
echo "Starting download" | logger -t "lte-metr"
download 2>&1 1>"/srv/lte-metr/`/usr/bin/date +'%Y-%m-%d_%H-%M-%S'`_$my_sn.csv" | logger -t "lte-metr"
/bin/mkdir -p /tmp/lte-metr
download 2>&1 1>"/tmp/lte-metr/`/usr/bin/date +'%Y-%m-%d_%H-%M-%S'`_$my_sn.csv" | logger -t "lte-metr"
echo "Download finished, starting netmetr" | logger -t "lte-metr"
/usr/bin/netmetr-lte --set-gps-console /dev/ttyUSB0 2>&1 1>/dev/null | logger -t "lte-metr"
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment