|
|
|
@ -35,8 +35,9 @@ else
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ $FLAG -eq 1 ]; then
|
|
|
|
if [ $FLAG -eq 1 ]; then
|
|
|
|
echo "systemctl daemon-reload"
|
|
|
|
echo "systemctl daemon-reload and restart"
|
|
|
|
sudo systemctl daemon-reload
|
|
|
|
sudo systemctl daemon-reload
|
|
|
|
|
|
|
|
sudo systemctl restart cubesatsim
|
|
|
|
else
|
|
|
|
else
|
|
|
|
grep 'changed' /home/pi/CubeSatSim/.updated
|
|
|
|
grep 'changed' /home/pi/CubeSatSim/.updated
|
|
|
|
if [[ $(grep 'changed' /home/pi/CubeSatSim/.updated) ]]; then
|
|
|
|
if [[ $(grep 'changed' /home/pi/CubeSatSim/.updated) ]]; then
|
|
|
|
|