From de19e5bc0c3da50449f3a445e5d459b4e915277c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 1 Mar 2026 11:22:52 -0500 Subject: [PATCH] Update config with rest of modes for pacsat reboot --- config | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config b/config index 4f479d21..a9c9e7fc 100755 --- a/config +++ b/config @@ -405,6 +405,8 @@ elif [ "$1" = "-m" ]; then else reboot=1 fi + elif [ "$1" = "p" ] || [ "$1" = "P" ] ; then + reboot=1 else restart=1 fi @@ -474,6 +476,8 @@ elif [ "$1" = "-s" ]; then else reboot=1 fi + elif [ "$1" = "p" ] || [ "$1" = "P" ] ; then + reboot=1 else restart=1 fi @@ -1272,7 +1276,11 @@ elif [ "$1" = "-e" ]; then echo "changing CubeSatSim to Repeater mode" sudo echo "e" > /home/pi/CubeSatSim/.mode - restart=1 + if [ "$1" = "p" ] || [ "$1" = "P" ] ; then + reboot=1 + else + restart=1 + fi elif [ "$1" = "-n" ]; then