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