Skip to content

lucsmall/Raspberry-Pi-Shutdown-Button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Raspberry Pi shutdown button
Luc Small
lucsmall.com
20150422

Watch the youtube video: https://youtu.be/Ns0JdZrXwdk

Waits for a button press and then shuts down Raspberry Pi

Momentary switch is connected between physical pins 25 and 26 on
the GPIO header

Script lives at:

/home/pi/off-button/

This script is added to crontab (with crontab -e) as follows:

@reboot /home/pi/off-button/wait-for-power-off-button.sh

All output goes to stdout and log file

About

A script that allows the Raspberry Pi to be powered off from a push button (tactile switch)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages