forked from spotnik-ham/etc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrestart.sat
More file actions
executable file
·39 lines (27 loc) · 880 Bytes
/
Copy pathrestart.sat
File metadata and controls
executable file
·39 lines (27 loc) · 880 Bytes
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
#!/bin/bash
# DTMF 102 SAT #
# Stop svxlink
if pgrep -x svxlink >/dev/null
then
pkill -TERM svxlink
pkill -f timersalon
fi
# Save network
echo "sat" > /etc/spotnik/network
rm /usr/share/svxlink/sounds/fr_FR/PropagationMonitor/name.wav
ln -s /etc/spotnik/Ssat.wav /usr/share/svxlink/sounds/fr_FR/PropagationMonitor/name.wav
rm -f /etc/spotnik/svxlink.sat
sleep 1
cat /etc/spotnik/svxlink.cfg >/etc/spotnik/svxlink.sat
echo "HOST=rrf3.f5nlg.ovh" >>/etc/spotnik/svxlink.sat
echo "AUTH_KEY=Magnifique123456789!" >>/etc/spotnik/svxlink.sat
echo "PORT=5303" >>/etc/spotnik/svxlink.sat
sleep 1
# Clear logs
> /tmp/svxlink.log
# Launch svxlink
svxlink --daemon --logfile=/tmp/svxlink.log --pidfile=/var/run/svxlink.pid --runasuser=root --config=/etc/spotnik/svxlink.sat
sleep 1
# Enable propagation monitor module
echo "10#" > /tmp/dtmf_uhf
echo "10#" > /tmp/dtmf_vhf