Update config -U only reboot if changed

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

@ -1769,12 +1769,10 @@ elif [ "$1" = "-U" ]; then
echo $1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} $sim $time
echo $1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} $sim $time > /home/pi/CubeSatSim/sim.cfg
echo
## echo "Rebooting CubeSatSim with new configuration file"
## echo
reboot=1
## sudo reboot now
# sudo restart cubesatsim
if [ "${12}" != "$sim" ]; then
reboot=1
fi
elif [ "$1" = "-h" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.