From b9220ad3b1e8ab000f2b9ba8ae1d6fc459f1c5eb Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 8 Nov 2020 10:49:33 -0500 Subject: [PATCH] added mode cycling if parameter is c --- rpitx.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 +