Home
Name Modified Size InfoDownloads / Week
lib-systemd-system 2017-11-09
srv-reset_btn 2017-11-09
README.textile 2017-11-09 1.0 kB
Totals: 3 Items   1.0 kB 0

This project contains two folders:

  • srv-reset_btn contains the scripts for starting the service
    and listening for button presses. You should create a reset_btn
    directory under /srv and place these files there, with 755 or 555 permissions and owned by root.
  • lib-systemd-system contains the configuration files for
    running this as a service. You should save these files under
    /lib/systemd/system directory, with 644 or 444 permissions and owned by root.

After all the files are in place and have the proper owners, permissions,
etc. you can enable the service:

sudo systemctl enable reset_btn

Start the service:

sudo systemctl start reset_btn

Stop the service:

sudo systemctl stop reset_btn

et cetera.

By default the tools assume your reset/shutdown button is connected to
pin GPIO3 because that can also be used for power-on, but you
can select a different pin if necessary. See details in the comments in
the reset_btn script.

Source: README.textile, updated 2017-11-09