|
|
|
@ -57,14 +57,14 @@ function check_restart {
|
|
|
|
FILE=/home/pi/CubeSatSim/battery_saver
|
|
|
|
FILE=/home/pi/CubeSatSim/battery_saver
|
|
|
|
if [ -f "$FILE" ]; then
|
|
|
|
if [ -f "$FILE" ]; then
|
|
|
|
restart=1
|
|
|
|
restart=1
|
|
|
|
echo "Need to restart since batt saver"
|
|
|
|
# echo "Need to restart since batt saver"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
reboot=1
|
|
|
|
reboot=1
|
|
|
|
echo "Need to reboot"
|
|
|
|
# echo "Need to reboot"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
restart=1
|
|
|
|
restart=1
|
|
|
|
echo "Need to restart"
|
|
|
|
# echo "Need to restart"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|