From 67ea9f05fd34879e15641159bfa9a8f42d1e43cc Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 1 Jan 2026 17:29:52 -0500 Subject: [PATCH] Update config fix check_restart --- config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config b/config index 191f464b..f71dd468 100755 --- a/config +++ b/config @@ -49,7 +49,10 @@ function transmit_command { function check_restart { - sudo echo "a" > /home/pi/CubeSatSim/.mode + value=`cat /home/pi/CubeSatSim/.mode` + echo "$value" > /dev/null + set -- $value + if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] || [ "$1" == "j" ] ; then FILE=/home/pi/CubeSatSim/battery_saver if [ -f "$FILE" ]; then