-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrestart.rrf
executable file
·38 lines (30 loc) · 990 Bytes
/
restart.rrf
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
#!/bin/bash
# DTMF 96 RRF #
# Stop svxlink
if pgrep -x svxlink >/dev/null
then
pkill -TERM svxlink
pkill -f timersalon
fi
# Save network
echo "rrf" > /etc/spotnik/network
# gestion des annonces vocales
rm /usr/share/svxlink/sounds/fr_FR/PropagationMonitor/name.wav
ln -s /usr/share/svxlink/sounds/fr_FR/RRF/Srrf.wav /usr/share/svxlink/sounds/fr_FR/PropagationMonitor/name.wav
# creation du svxlink.rrf
rm -f /etc/spotnik/svxlink.rrf
sleep 1
cat /etc/spotnik/svxlink.cfg >/etc/spotnik/svxlink.rrf
# coipe du host pour le reflector
echo "HOST=rrf3.f5nlg.ovh" >>/etc/spotnik/svxlink.rrf
echo "AUTH_KEY=Magnifique123456789!" >>/etc/spotnik/svxlink.rrf
echo "PORT=5300" >>/etc/spotnik/svxlink.rrf
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.rrf
sleep 1
# Enable propagation monitor module
echo "10#" > /tmp/dtmf_uhf
echo "10#" > /tmp/dtmf_vhf