Update config reboot if fail seconds changed

sim-fail-4
Alan Johnston 4 months ago committed by GitHub
parent b3c1ebee9e
commit 2c7c331590
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1754,7 +1754,6 @@ elif [ "$1" = "-U" ]; then
echo "Error: not an integer!"
time="${13}"
echo "Keeping value of" $time
# norestart=1
fi
else
@ -1770,7 +1769,7 @@ elif [ "$1" = "-U" ]; then
echo $1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} $sim $time > /home/pi/CubeSatSim/sim.cfg
echo
if [ "${12}" != "$sim" ]; then
if [ "${12}" != "$sim" ] || [ "${13}" != "$time" ] ; then
reboot=1
fi

Loading…
Cancel
Save

Powered by TurnKey Linux.