From 98d006ddeb61e915249fbf0ede15a92d8b7e8540 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 1 Mar 2026 09:23:09 -0500 Subject: [PATCH] Update config always reboot for Pacsat mode changes --- config | 48 ++++++++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/config b/config index 7759faed..5f793cee 100755 --- a/config +++ b/config @@ -1430,17 +1430,19 @@ elif [ "$1" = "-G" ]; then set -- $value # echo "changing CubeSatSim to Pacsat mode" - sudo echo "p" > /home/pi/CubeSatSim/.mode - if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] ; then - FILE=/home/pi/CubeSatSim/battery_saver - if [ -f "$FILE" ]; then - restart=1 - else - reboot=1 - fi - else - restart=1 - fi + + reboot=1 +# sudo echo "p" > /home/pi/CubeSatSim/.mode +# if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] ; then +# FILE=/home/pi/CubeSatSim/battery_saver +# if [ -f "$FILE" ]; then +# restart=1 +# else +# reboot=1 +# fi +# else +# restart=1 +# fi elif [ "$1" = "-I" ]; then @@ -1452,17 +1454,19 @@ elif [ "$1" = "-I" ]; then set -- $value # echo "changing CubeSatSim to Pacsat mode" - sudo echo "P" > /home/pi/CubeSatSim/.mode - if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] ; then - FILE=/home/pi/CubeSatSim/battery_saver - if [ -f "$FILE" ]; then - restart=1 - else - reboot=1 - fi - else - restart=1 - fi + + reboot=1 +# sudo echo "P" > /home/pi/CubeSatSim/.mode +# if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] ; then +# FILE=/home/pi/CubeSatSim/battery_saver +# if [ -f "$FILE" ]; then +# restart=1 +# else +# reboot=1 +# fi +# else +# restart=1 +# fi elif [ "$1" = "-h" ]; then