config back to rebooting after every mode change

sr-frs-payload-all-modes
Alan Johnston 2 years ago committed by GitHub
parent 9b30ef3f00
commit 206130a86b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -59,32 +59,37 @@ 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
echo "rebooting"
sudo reboot now sudo reboot now
# sudo systemctl restart cubesatsim # sudo systemctl restart cubesatsim
exit exit
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 reboot now echo "rebooting"
sudo systemctl restart cubesatsim sudo reboot now
# sudo systemctl restart cubesatsim
exit exit
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
# sudo reboot now echo "rebooting"
sudo systemctl restart cubesatsim sudo reboot now
# sudo systemctl restart cubesatsim
exit exit
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
# sudo reboot now echo "rebooting"
sudo systemctl restart cubesatsim sudo reboot now
# sudo systemctl restart cubesatsim
exit exit
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 reboot now echo "rebooting"
sudo systemctl restart cubesatsim sudo reboot now
# sudo systemctl restart cubesatsim
exit exit
elif [ "$1" = "-h" ]; then elif [ "$1" = "-h" ]; then
echo "config OPTION" echo "config OPTION"

Loading…
Cancel
Save

Powered by TurnKey Linux.