Update config add transmit command to -a command

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

@ -128,25 +128,32 @@ elif [ "$1" = "-i" ]; then
## sudo reboot now ## sudo reboot now
# sudo restart cubesatsim # sudo restart cubesatsim
## exit ## exit
elif [ "$1" = "-a" ]; then elif [ "$1" = "-a" ]; then
echo "changing CubeSatSim to AFSK mode"
sudo echo "a" > /home/pi/CubeSatSim/.mode
FILE=/home/pi/CubeSatSim/battery_saver value=`cat /home/pi/CubeSatSim/.mode`
if [ -f "$FILE" ]; then echo "$value" > /dev/null
echo "Safe Mode! Battery saver mode is ON." set -- $value
# if ! grep force_turbo=1 /boot/config.txt ; then sudo sh -c 'echo "force_turbo=1" >> /boot/config.txt'; fi
if [ "$1" == "n" ]; then
echo "Transmit mode 1 is APRS"
STRING="AMSAT-11>APCSS:=3901.40N\07704.39WShi hi MODE=a"
sudo rm /home/pi/CubeSatSim/t.txt
echo $STRING > /home/pi/CubeSatSim/t.txt
echo
echo -n "Sending APRS packet "
echo $STRING
sudo touch /home/pi/CubeSatSim/ready
sleep 5
sudo touch /home/pi/CubeSatSim/ready
else else
echo "Battery saver mode is OFF."
# sudo sed -i ':a;N;$!ba;s/\nforce_turbo=1//g' /boot/config.txt
fi
echo "changing CubeSatSim to AFSK mode"
sudo echo "a" > /home/pi/CubeSatSim/.mode
reboot=1 reboot=1
## echo "rebooting" fi
## sudo stop rpitx
## sudo reboot now
# sudo restart cubesatsim
## exit
elif [ "$1" = "-m" ]; then elif [ "$1" = "-m" ]; then
echo "changing CubeSatSim to CW mode" echo "changing CubeSatSim to CW mode"

Loading…
Cancel
Save

Powered by TurnKey Linux.