Update config add transmit command beacon

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

@ -1106,37 +1106,47 @@ elif [ "$1" = "-F" ]; then
elif [ "$1" = "-o" ]; then elif [ "$1" = "-o" ]; then
echo value=`cat /home/pi/CubeSatSim/.mode`
echo "Change telemetry beacon transmit state" echo "$value" > /dev/null
echo set -- $value
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 if [ "$1" == "n" ]; then
echo "Turn beacon telemetry ON"
sudo rm /home/pi/CubeSatSim/beacon_off > /dev/null 2>&1
sudo systemctl restart rpitx
# restart=1
fi
else transmit_command_beacon
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 else
echo "Turn beacon telemetry OFF" echo
touch /home/pi/CubeSatSim/beacon_off echo "Change telemetry beacon transmit state"
sudo systemctl restart rpitx echo
# restart=1
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
sudo systemctl restart rpitx
# 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
sudo systemctl restart rpitx
# restart=1
fi
fi fi
fi fi

Loading…
Cancel
Save

Powered by TurnKey Linux.