Adding shutdown/restart pushbutton for Raspberry Pi

This article deals with adding a push button on the Raspberry Pi’s GPIO pins and writing a daemon that handles push button events. If we press the push button for less than 2 seconds, we want the daemon to shutdown the system and if the push button is still depressed for 2 or more seconds, the daemon must …

Adding shutdown/restart pushbutton for Raspberry Pi Read More »