prepare separate images based on the used sdr device

This commit is contained in:
Jakob Ketterl
2019-01-21 17:02:58 +00:00
parent 896fd0c178
commit a60521420b
10 changed files with 20 additions and 4 deletions

23
docker/scripts/run.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
set -euo pipefail
if [[ ! -f /config/config_webrx.py ]] ; then
cp config_webrx.py /config
fi
rm config_webrx.py
ln -s /config/config_webrx.py .
_term() {
echo "Caught signal!"
kill -TERM "$child" 2>/dev/null
}
trap _term SIGTERM SIGINT
python2.7 openwebrx.py $@ &
child=$!
wait "$child"