From d9d5ba5a42c3083efcf55e1e546edb650b36dc80 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 28 Jul 2026 09:45:45 -0400 Subject: [PATCH] Update install remove pi-power-button --- install | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/install b/install index c332569a..f7b565ce 100755 --- a/install +++ b/install @@ -469,28 +469,6 @@ else echo "b" > .mode fi -if [ ! -d "/home/pi/pi-power-button" ]; then - - cd - git clone https://github.com/alanbjohnston/pi-power-button.git - cd pi-power-button - git checkout master - ./script/install - sudo apt-get install -y libraspberrypi-dev - -fi - -cd /home/pi/pi-power-button - -if [ ! $(git branch --show-current | grep master-b) ]; then - - echo "updating branch of pi-power-button to master-b." - git pull - git checkout master-b - script/install - FLAG=1 -fi - git pull --no-rebase > .updated_p #git checkout master grep 'changed' /home/pi/pi-power-button/.updated_p @@ -741,6 +719,11 @@ else FLAG=1 fi +if [ ! -d "/home/pi/pi-pushbutton" ]; then + pkill -f /usr/local/bin/listen-for-shutdown.py > /dev/null + sudo rm /etc/init.d/listen-for-shutdown.sh stop > /dev/null +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