45 lines
939 B
Plaintext
45 lines
939 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# DTMF 101# LOCAL
|
||
|
|
||
|
# Stop svxlink
|
||
|
if pgrep -x svxlink >/dev/null
|
||
|
then
|
||
|
pkill -TERM svxlink
|
||
|
pkill -f timersalon
|
||
|
fi
|
||
|
|
||
|
# Save network
|
||
|
echo "loc" > /etc/spotnik/network
|
||
|
|
||
|
rm /usr/share/svxlink/sounds/fr_FR/PropagationMonitor/name.wav
|
||
|
ln -s /etc/spotnik/Sloc.wav /usr/share/svxlink/sounds/fr_FR/PropagationMonitor/name.wav
|
||
|
|
||
|
# Clear logs
|
||
|
> /tmp/svxlink.log
|
||
|
|
||
|
rm -f /etc/spotnik/svxlink.fra
|
||
|
|
||
|
sleep 1
|
||
|
|
||
|
cat /etc/spotnik/svxlink.cfg >/etc/spotnik/svxlink.fra
|
||
|
|
||
|
echo "HOST=fra1od.fr.to" >>/etc/spotnik/svxlink.fra
|
||
|
echo "AUTH_KEY=FRA1OC" >>/etc/spotnik/svxlink.fra
|
||
|
echo "PORT=5300" >>/etc/spotnik/svxlink.fra
|
||
|
|
||
|
sleep 1
|
||
|
|
||
|
# Launch svxlink
|
||
|
svxlink --daemon --logfile=/tmp/svxlink.log --pidfile=/var/run/svxlink.pid --runasuser=root --config=/etc/spotnik/svxlink.fra
|
||
|
sleep 1
|
||
|
|
||
|
|
||
|
# Enable Metar Info module
|
||
|
echo "10#" > /tmp/dtmf_uhf
|
||
|
echo "10#" > /tmp/dtmf_vhf
|
||
|
|
||
|
# debut gestion timer salon:
|
||
|
pkill -f timersalon
|
||
|
sh /etc/spotnik/timersalon.sh &
|