I am new to Raspberry Pi and am trying to use the headless shutdown module provided by Adafruit.
I downloaded the script of Adafruit-GPIO-Halt to my Raspberry Pi, installed it to the /usr/local/bin/gpio-halt
file and even made a file on the system/system
folder, following the steps on https://www.recantha.co.uk/blog/?p=13999.
However, the file in the systemd/system
folder is getting saved with a .service.save extension and system prevents me from using the line sudo chmod 644 /lib/systemd/system/gpio-halt.service
by saying, 'Permission denied.'
I would like to set-up the code to run on start-up. I am using Raspbian Version 9(stretch). Please help.
gpio-shutdown
device tree overlay: https://raspberrypi.stackexchange.com/a/77918/93934 – Roger Jones Feb 18 '20 at 09:33