|
|
|
|
@ -59,32 +59,37 @@ if [ "$1" = "-i" ]; then
|
|
|
|
|
elif [ "$1" = "-a" ]; then
|
|
|
|
|
echo "changing CubeSatSim to AFSK mode"
|
|
|
|
|
sudo echo "a" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
echo "rebooting"
|
|
|
|
|
sudo reboot now
|
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
|
exit
|
|
|
|
|
elif [ "$1" = "-m" ]; then
|
|
|
|
|
echo "changing CubeSatSim to CW mode"
|
|
|
|
|
sudo echo "m" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
# sudo reboot now
|
|
|
|
|
sudo systemctl restart cubesatsim
|
|
|
|
|
echo "rebooting"
|
|
|
|
|
sudo reboot now
|
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
|
exit
|
|
|
|
|
elif [ "$1" = "-f" ]; then
|
|
|
|
|
echo "changing CubeSatSim to FSK mode"
|
|
|
|
|
sudo echo "f" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
# sudo reboot now
|
|
|
|
|
sudo systemctl restart cubesatsim
|
|
|
|
|
echo "rebooting"
|
|
|
|
|
sudo reboot now
|
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
|
exit
|
|
|
|
|
elif [ "$1" = "-b" ]; then
|
|
|
|
|
echo "changing CubeSatSim to BPSK mode"
|
|
|
|
|
sudo echo "b" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
# sudo reboot now
|
|
|
|
|
sudo systemctl restart cubesatsim
|
|
|
|
|
echo "rebooting"
|
|
|
|
|
sudo reboot now
|
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
|
exit
|
|
|
|
|
elif [ "$1" = "-s" ]; then
|
|
|
|
|
echo "changing CubeSatSim to SSTV mode"
|
|
|
|
|
sudo echo "s" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
# sudo reboot now
|
|
|
|
|
sudo systemctl restart cubesatsim
|
|
|
|
|
echo "rebooting"
|
|
|
|
|
sudo reboot now
|
|
|
|
|
# sudo systemctl restart cubesatsim
|
|
|
|
|
exit
|
|
|
|
|
elif [ "$1" = "-h" ]; then
|
|
|
|
|
echo "config OPTION"
|
|
|
|
|
|