Skip to content

This daemon allows shutting down/restarting Raspberry Pi using push button.

Notifications You must be signed in to change notification settings

KarolNi/buttonshutdownd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buttonshutdownd
Based on buttonshutdown-daemon written by Sanjeev Sharma (http://sanje2v.wordpress.com/).
Modified by SRChiP.
Modified by KarolNi.

This daemon is used to monitor wiringPi GPIO pin 0 on whether it has been pulled to ground. If the pushbutton is pulled down for less than 2 secs, the daemon shuts down the system while if pulled down for 2 or more seconds, the daemon restarts the system.
Simply connect a pushswitch to wiringPi pin 0 and ground or use screwdriver to short pins 9 and 11.

About

This daemon allows shutting down/restarting Raspberry Pi using push button.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.8%
  • Shell 3.2%