Skip to content

Binds GPIO 21 to shutdown installs dependencies, and service

Notifications You must be signed in to change notification settings

maz0r/rpi-shutdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

rpi-shutdown

Wrapps scruss's shutdown script in an installer because i'm lazy :)

Button Behaviour

When a momentary switch is attached to GPIO pin 21 and shorted to ground the following behaviour is observed

< 2 seconds == nothing

> 2 && < 5 seconds == reboot

> 5 seconds == shutdown

Installation

wget https://raw.githubusercontent.com/maz0r/rpi-shutdown/main/rpi-shutdown.sh
sudo chmod x rpi-shutdown.sh
sudo ./rpi-shutdown.sh

About

Binds GPIO 21 to shutdown installs dependencies, and service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages