From e6ef9ed4a3129da1e449f4f4f5e0d7719b8b04c5 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 27 Feb 2022 23:42:04 +0100 Subject: Run systemctl daemon-reload at the end of make install. --- buttonctl/buttond.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'buttonctl/buttond.py') diff --git a/buttonctl/buttond.py b/buttonctl/buttond.py index 26878f1..a49b4e4 100644 --- a/buttonctl/buttond.py +++ b/buttonctl/buttond.py @@ -4,11 +4,13 @@ import RPi.GPIO as GPIO import subprocess +print ('waiting for button presses'); + GPIO.setmode(GPIO.BCM) GPIO.setup(26, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.wait_for_edge(26, GPIO.FALLING) -print ('button pressed') +print ('button pressed, shutting down') subprocess.call(['ledctl', 'boot'], shell=False) -- cgit v1.2.3