Update config fix check_restart

send-commands
Alan Johnston 1 month ago committed by GitHub
parent 1bbc12acb2
commit 67ea9f05fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.