|
|
|
@ -59,6 +59,7 @@ if [ "$1" = "-i" ]; then
|
|
|
|
elif [ "$1" = "-a" ]; then
|
|
|
|
elif [ "$1" = "-a" ]; then
|
|
|
|
echo "changing CubeSatSim to AFSK mode"
|
|
|
|
echo "changing CubeSatSim to AFSK mode"
|
|
|
|
sudo echo "a" > /home/pi/CubeSatSim/.mode
|
|
|
|
sudo echo "a" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
|
|
|
sudo sed -i ':a;N;$!ba;s/\nforce_turbo=1//g' /boot/config.txt
|
|
|
|
echo "rebooting"
|
|
|
|
echo "rebooting"
|
|
|
|
sudo reboot now
|
|
|
|
sudo reboot now
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
@ -66,6 +67,7 @@ elif [ "$1" = "-a" ]; then
|
|
|
|
elif [ "$1" = "-m" ]; then
|
|
|
|
elif [ "$1" = "-m" ]; then
|
|
|
|
echo "changing CubeSatSim to CW mode"
|
|
|
|
echo "changing CubeSatSim to CW mode"
|
|
|
|
sudo echo "m" > /home/pi/CubeSatSim/.mode
|
|
|
|
sudo echo "m" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
|
|
|
sudo sed -i ':a;N;$!ba;s/\nforce_turbo=1//g' /boot/config.txt
|
|
|
|
echo "rebooting"
|
|
|
|
echo "rebooting"
|
|
|
|
sudo reboot now
|
|
|
|
sudo reboot now
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
@ -73,6 +75,9 @@ elif [ "$1" = "-m" ]; then
|
|
|
|
elif [ "$1" = "-f" ]; then
|
|
|
|
elif [ "$1" = "-f" ]; then
|
|
|
|
echo "changing CubeSatSim to FSK mode"
|
|
|
|
echo "changing CubeSatSim to FSK mode"
|
|
|
|
sudo echo "f" > /home/pi/CubeSatSim/.mode
|
|
|
|
sudo echo "f" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
|
|
|
if ! grep -q force_turbo=1 /boot/config.txt ; then
|
|
|
|
|
|
|
|
sudo sh -c 'echo "force_turbo=1" >> /boot/config.txt'
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "rebooting"
|
|
|
|
echo "rebooting"
|
|
|
|
sudo reboot now
|
|
|
|
sudo reboot now
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
@ -80,6 +85,9 @@ elif [ "$1" = "-f" ]; then
|
|
|
|
elif [ "$1" = "-b" ]; then
|
|
|
|
elif [ "$1" = "-b" ]; then
|
|
|
|
echo "changing CubeSatSim to BPSK mode"
|
|
|
|
echo "changing CubeSatSim to BPSK mode"
|
|
|
|
sudo echo "b" > /home/pi/CubeSatSim/.mode
|
|
|
|
sudo echo "b" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
|
|
|
if ! grep -q force_turbo=1 /boot/config.txt ; then
|
|
|
|
|
|
|
|
sudo sh -c 'echo "force_turbo=1" >> /boot/config.txt'
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "rebooting"
|
|
|
|
echo "rebooting"
|
|
|
|
sudo reboot now
|
|
|
|
sudo reboot now
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
@ -87,6 +95,7 @@ elif [ "$1" = "-b" ]; then
|
|
|
|
elif [ "$1" = "-s" ]; then
|
|
|
|
elif [ "$1" = "-s" ]; then
|
|
|
|
echo "changing CubeSatSim to SSTV mode"
|
|
|
|
echo "changing CubeSatSim to SSTV mode"
|
|
|
|
sudo echo "s" > /home/pi/CubeSatSim/.mode
|
|
|
|
sudo echo "s" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
|
|
|
sudo sed -i ':a;N;$!ba;s/\nforce_turbo=1//g' /boot/config.txt
|
|
|
|
echo "rebooting"
|
|
|
|
echo "rebooting"
|
|
|
|
sudo reboot now
|
|
|
|
sudo reboot now
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
|