This is the safe shutdown script for x730
Note
This version targets newer Raspberry Pi OS versions supporting pinctrl instead of /sys/class/gpio or raspi-gpio
- OS supporting systemd
bashshell (v5+ or GNU coreutils)- Either sleep supporting fractions of seconds or perl or python
pinctrlbinary on path
Run sudo install.sh
Use default GUI or terminal possibilities for poweroff/reboot or press the button of you PI's case (short reboot, long shutdown).