AeitZean Posted July 18, 2018 Share Posted July 18, 2018 (edited) Hi, I'm running Armbian Stretch with the 4.14.y kernel on my Orange Pi Zero, as a headless Samba server. Does anyone have a link to a tutorial on how i can add a GPIO button to run the shutdown command, so I don't have to SSH into it every time I want to shut the thing down? thanks. Edited July 18, 2018 by AeitZean Link to comment Share on other sites More sharing options...
WarHawk_AVG Posted July 19, 2018 Share Posted July 19, 2018 More or less a python script monitoring a pinhttps://stackoverflow.com/questions/30334424/python-shutdown-reboot-raspberry-pi-script-using-a-single-button https://www.hackster.io/glowascii/raspberry-pi-shutdown-restart-button-d5fd07 <-this one has both shutdown and reboot but you have to wire up two separate pins. There are buckets of howto's just have to figure out what pins you want to use...then write the script... Link to comment Share on other sites More sharing options...
Recommended Posts