Skip to content

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

Notifications You must be signed in to change notification settings

SRChiP/buttonshutdownd-inv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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.6%
  • Shell 3.4%