Update config add -d to turn Direwolf on and off

pull/323/head
Alan Johnston 1 year ago committed by GitHub
parent 8b938a7ab8
commit 85b8cc2f6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -499,6 +499,49 @@ elif [ "$1" = "-T" ]; then
fi fi
elif [ "$1" = "-d" ]; then
echo
echo "Change command and control Direwolf state"
echo
FILE=/home/pi/CubeSatSim/command_control_direwolf
if [ -f "$FILE" ]; then
echo "Radio command and control with Direwolf for DTMF and APRS is ON"
echo
echo "Do you want to turn Direwolf OFF and do Carrier command and control (y/n) "
read reset
echo
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
echo "Command and control Direwolf set to OFF"
sudo rm /home/pi/CubeSatSim/command_control_direwolf
reboot=1
## echo "rebooting"
## sudo systemctl stop rpitx
## sudo reboot now
fi
else
echo "Radio command and control with Direwolf for DTMF and APRS is OFF so carrier command and control is enabled"
echo
echo "Do you want to set command and control with Direwolf for DTMF and APRS to ON (y/n) "
read reset
echo
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
echo "Command and control Direwolf set to ON"
sudo touch /home/pi/CubeSatSim/command_control_direwolf
## echo "rebooting"
reboot=1
## sudo systemctl stop rpitx
## sudo reboot now
fi
fi
elif [ "$1" = "-R" ]; then elif [ "$1" = "-R" ]; then
echo echo

Loading…
Cancel
Save

Powered by TurnKey Linux.