#!/bin/bash echo -e "\nDemo of CubeSatSim at 434.9 MHz\n" #exit y=$(last reboot | grep ^reboot | wc -l) echo $y if (( $y % 2 == 0 )) then echo -e "\n Continuous FSK Mode\n\n" /home/pi/CubeSatSim/radioafsk f else echo -e "\n Alternating FSK, BPSK, and AFSK telemetry Mode \n\n" /home/pi/CubeSatSim/radioafsk afsk 5 y while true; do echo -e "\n Changing mode ******\n\n" /home/pi/CubeSatSim/radioafsk fsk 5 n /home/pi/CubeSatSim/radioafsk bpsk 5 n sleep 24 sudo killall -9 sendiq sleep 6 /home/pi/CubeSatSim/radioafsk afsk 5 n done fi