From 474e3f618b2be9180add01a9e0cce347a27b079c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 1 Mar 2026 11:08:48 -0500 Subject: [PATCH] Update config change -a, -f, -b to reboot for pacsat --- config | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/config b/config index b9c1ba2f..4552d516 100755 --- a/config +++ b/config @@ -369,7 +369,7 @@ elif [ "$1" = "-a" ]; then else echo "changing CubeSatSim to AFSK mode" - sudo echo "a" > /home/pi/CubeSatSim/.mode + sudo echo "a" > /home/pi/CubeSatSim/.mode if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] ; then FILE=/home/pi/CubeSatSim/battery_saver if [ -f "$FILE" ]; then @@ -377,6 +377,8 @@ elif [ "$1" = "-a" ]; then else reboot=1 fi + elif [ "$1" = "p" ] || [ "$1" = "P" ] ; then + reboot=1 else restart=1 fi @@ -422,7 +424,10 @@ elif [ "$1" = "-f" ]; then echo "changing CubeSatSim to FSK mode" sudo echo "f" > /home/pi/CubeSatSim/.mode - restart=1 + if [ "$1" = "p" ] || [ "$1" = "P" ] ; then + reboot=1 + else + restart=1 fi elif [ "$1" = "-b" ]; then @@ -439,7 +444,10 @@ elif [ "$1" = "-b" ]; then echo "changing CubeSatSim to BPSK mode" sudo echo "b" > /home/pi/CubeSatSim/.mode - restart=1 + if [ "$1" = "p" ] || [ "$1" = "P" ] ; then + reboot=1 + else + restart=1 fi elif [ "$1" = "-s" ]; then