This repository was archived by the owner on Jun 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtrimode
More file actions
50 lines (38 loc) · 1.2 KB
/
Copy pathtrimode
File metadata and controls
50 lines (38 loc) · 1.2 KB
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
45
46
47
48
49
#!/bin/bash
#script to enable trimode in direwolf
#and in pat menu.
#for amrron operations
#20191230 km4ack
source $HOME/patmenu/config
CHECK=$(ls ~/.config | grep KM4ACK)
if [ -z "$CHECK" ]
then
echo;echo
echo "This system doesn't appear to be built with"
echo "the KM4ACK build-a-pi script. Running this"
echo "script will probably destroy the configurations"
echo "on this machine. Proceed at your OWN RISK"
echo "YOU HAVE BEEN WARNED!!"
echo "Press ctrl+c now to exit or"
read -n 1 -s -r -p "Press any key to continue"
fi
if [ $AMRRON = "no" ]
then
echo "Tri mode disabled in the Pat Menu Config File"
echo "~/patmenu/config Set AMRRON=yes and try this"
echo "script again. 73, de KM4ACK"
exit 0
fi
if ! hash pulseaudio 2>/dev/null; then
sudo apt install -y pulseaudio
fi
if ! hash pavucontrol 2>/dev/null; then
sudo apt install -y pavucontrol
fi
D=$(cat $HOME/direwolf.conf | grep -E "ADEVICE +plughw:1,0" | awk '{ print $0 }')
sed -i "s/$D/ADEVICE pulse/" $HOME/direwolf.conf
echo 'ARDOP="$HOME/ardop/./piardopc 8515 pulse pulse"' >> $HOME/patmenu/config
echo "Tri Mode Ops enabled. Use Pat Menu to"
echo "start the ARDOP & Packet modems"
echo "You can now start both modems at the same time"
exit 0