From 1bdf8be7bf43ad2a36e25a975c7c7483d35ec5b0 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 12 Jul 2021 14:52:20 -0400 Subject: [PATCH] added flight.service --- update | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/update b/update index d526c2bc..2483d875 100755 --- a/update +++ b/update @@ -54,6 +54,16 @@ else echo "no changes to camera.service." fi +if [[ $(diff systemd/flight.service /etc/systemd/system/flight.service) ]]; then + echo "changed flight.service." + sudo cp /home/pi/CubeSatSim/systemd/flight.service /etc/systemd/system/flight.service + sudo systemctl daemon-reload + echo "systemctl restart flight" +# sudo systemctl restart camera +else + echo "no changes to flight.service." +fi + FILE=/home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg if [ ! -f "$FILE" ]; then echo "Copying SSTV image 1."