prepare separate images based on the used sdr device
This commit is contained in:
23
docker/scripts/run.sh
Executable file
23
docker/scripts/run.sh
Executable 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"
|
||||
|
Reference in New Issue
Block a user