|
|
|
|
@ -49,22 +49,22 @@ if [ "$1" = "-i" ]; then
|
|
|
|
|
exit
|
|
|
|
|
elif [ "$1" = "-a" ]; then
|
|
|
|
|
echo "changing CubeSatSim to AFSK mode"
|
|
|
|
|
sudo echo "ARG1=a" > .mode
|
|
|
|
|
sudo echo "ARG1=a" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
sudo systemctl restart cubesatsim
|
|
|
|
|
exit
|
|
|
|
|
elif [ "$1" = "-f" ]; then
|
|
|
|
|
echo "changing CubeSatSim to FSK mode"
|
|
|
|
|
sudo echo "ARG1=f" > .mode
|
|
|
|
|
sudo echo "ARG1=f" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
sudo systemctl restart cubesatsim
|
|
|
|
|
exit
|
|
|
|
|
elif [ "$1" = "-b" ]; then
|
|
|
|
|
echo "changing CubeSatSim to BPSK mode"
|
|
|
|
|
sudo echo "ARG1=b" > .mode
|
|
|
|
|
sudo echo "ARG1=b" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
sudo systemctl restart cubesatsim
|
|
|
|
|
exit
|
|
|
|
|
elif [ "$1" = "-s" ]; then
|
|
|
|
|
echo "changing CubeSatSim to SSTV mode"
|
|
|
|
|
sudo echo "ARG1=s" > .mode
|
|
|
|
|
sudo echo "ARG1=s" > /home/pi/CubeSatSim/.mode
|
|
|
|
|
sudo systemctl restart cubesatsim
|
|
|
|
|
exit
|
|
|
|
|
elif [ "$1" = "-h" ]; then
|
|
|
|
|
|