Update config added -o to turn beacon on/off

pull/327/head
Alan Johnston 1 year ago committed by GitHub
parent 4525da69ea
commit a3677fd5be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1094,6 +1094,41 @@ elif [ "$1" = "-F" ]; then
## sudo reboot now
# sudo systemctl restart rpitx
# fi
elif [ "$1" = "-o" ]; then
echo
echo "Change telemetry beacon transmit state"
echo
FILE=/home/pi/CubeSatSim/beacon_off
if [ -f "$FILE" ]; then
echo "Transmit beacon telemetry is off"
echo
echo "Do you want to turn beacon telemetry ON (y/n) "
read reset
echo
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
echo "Turn beacon telemetry ON"
sudo rm /home/pi/CubeSatSim/beacon_off > /dev/null 2>&1
restart=1
fi
else
echo "Transmit beacon telemetry is on"
echo
echo "Do you want to turn beacon telemetry OFF(y/n) "
read reset
echo
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
echo "Turn beacon telemetry OFF"
touch /home/pi/CubeSatSim/beacon_off
restart=1
fi
fi
elif [ "$1" = "-H" ]; then
# echo
@ -1277,6 +1312,8 @@ elif [ "$1" = "-h" ]; then
echo " -P Change the PL (Private Line) CTCSS/CDCSS codes for RX and TX"
echo " -A Transmit APRS control packets to control another CubeSatSim"
echo " -D Change Transmit command state APRS or DTMF"
echo " -o Change telemetry beacon transmit state"
echo
exit

Loading…
Cancel
Save

Powered by TurnKey Linux.