But it doesn't work with 0.5 beta on Pi 2B, even if dtoverlays in general are working.
So I had to set it up according to janui's hint in https://www.runeaudio.com/forum/shutdown-restart-pushbutton-t6781-10.html#p27707
My /etc/systemd-gpio/shutdown reads:
- Code: Select all
GPIO=3
MODE=up
DIR=rising
MESSAGE="Shutdown requested by GPIO trigger."
COMMAND="/srv/http/command/rune_shutdown ; /usr/bin/shutdown -h now"
DEBOUNCE=1.0
Caveat:
- GPIO number relates to the BCM numbering scheme, GPIO 3 means physical pin 5, like shown on https://pinout.xyz/
- option -h ist needed for shutdown:
- Code: Select all
shutdown -P
I do not understand if it is really important to run rune_shutdown before /bin/shutdown. In my opinion a system-shutdown should also unmount all shares and close all services, like the rune script does?
However: Kudos to all coders at this great peace of SW!