From LedHed's Wiki
Jump to: navigation, search
 
Line 6: Line 6:
  
 
== Soft Reset/Halt ==
 
== Soft Reset/Halt ==
You can also use GPIO Pin 5 & 6 along with some software that will monitor for a low state and then run a script.
+
You can also use GPIO Pin 5 & 6 along with some software that will monitor for a low state and then run a command.
 
+
You can get the script [https://github.com/g0to/misc_scripts/blob/master/raspi_gpio_actions.sh here]
 +
Set the script to run at start by adding it to /etc/crontab
 +
@reboot        root    /home/user/scripts/raspi_gpio_actions.sh
 +
<font style="color:red">Disclaimer: I did not write this script, I'm regurgitating her for my own reference. For full details see the reference section.</font>
  
  

Latest revision as of 08:40, 17 December 2015

Hard Reset Switch

Raspberry Pi B, B+ and 2 have P6/Run headers that can be used to reset the Pi or power it on from halt. PiP6WithHeaderPins.png Note: The location of this pin header varies by hardware revision.


Soft Reset/Halt

You can also use GPIO Pin 5 & 6 along with some software that will monitor for a low state and then run a command. You can get the script here Set the script to run at start by adding it to /etc/crontab

@reboot        root    /home/user/scripts/raspi_gpio_actions.sh

Disclaimer: I did not write this script, I'm regurgitating her for my own reference. For full details see the reference section.


Reference

http://www.makeuseof.com/tag/add-reset-switch-raspberry-pi/