From 010cf16db78642597a86b80a9c063341899f9d33 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 28 Jul 2026 09:42:09 -0400 Subject: [PATCH] Update install --- install | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/install b/install index 4957dc4e..c332569a 100755 --- a/install +++ b/install @@ -741,6 +741,20 @@ else FLAG=1 fi +FILE=/etc/systemd/system/pushbutton.service +if [ -f "$FILE" ]; then + if [[ $(diff /home/pi/CubeSatSim/systemd/pushbutton.service /etc/systemd/system/pushbutton.service) ]]; then + echo "changed pushbutton.service." + sudo cp /home/pi/CubeSatSim/systemd/pushbutton.service /etc/systemd/system/pushbutton.service + FLAG=1 + else + echo "no change to pushbutton.service." + fi +else + echo "creating pushbutton.service." + sudo cp /home/pi/CubeSatSim/systemd/pushbutton.service /etc/systemd/system/pushbutton.service + FLAG=1 +fi FILE=/etc/asound.conf if [ -f "$FILE" ]; then