-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart.sh
executable file
·45 lines (29 loc) · 1.04 KB
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
#set -o xtrace
killall RTbolidozor.py > /dev/null
sleep 10
ntp-wait -v
JSON_CONFIG="/home/bolidozor/bolidozor/station/Bolidozor.json"
BUS_CONFIG="/home/bolidozor/bolidozor/station/bus_config.py"
ulimit -c unlimited
cd ~/repos/station-supervisor
#./mount-sd-card.sh
if ! pidof -x frequency-guard.py > /dev/null; then
./frequency-guard.py $JSON_CONFIG $BUS_CONFIG > /dev/null &
fi
cd ~/repos/signal-piping-tools
rm -rf 3731_taps
./fir_taps -n 512 -r 96000 -c 1000 -w hanning > 3731_taps
if ! pidof sdr-widget > /dev/null; then
{ ./sdr-widget -r 96000 | buffer & } | ./servestream -d -p 3701
fi
if ! pidof ./servecmd > /dev/null; then
./servecmd -d -p 3731 'nc localhost 3701 | buffer -s 64k -m 2m | ./x_fir_dec -b 128 96000 26500 48 3731_taps'
fi
if ! pidof radio-observer > /dev/null; then
~/repos/radio-observer/radio-observer -c $JSON_CONFIG | python3 ~/repos/station-supervisor/RTbolidozor.py $JSON_CONFIG&
fi
cd ~/repos/data-uploader
if ! pidof -x dataUpload.py > /dev/null; then
./dataUpload.py $JSON_CONFIG > /dev/null &
fi