diff --git a/rpitx.sh b/rpitx.sh index e95613a1..a00ee535 100755 --- a/rpitx.sh +++ b/rpitx.sh @@ -2,4 +2,11 @@ echo -e "\nrpitx for CubeSatSim at 434.9 MHz using python\n" -python -u /home/pi/CubeSatSim/rpitx.py $1 +if [ "$1" = "c" ]; then + echo "Mode cycling" + y=$(last reboot | grep ^reboot | wc -l) + echo $y +else + python -u /home/pi/CubeSatSim/rpitx.py $1 +fi +