Facebook
From Kurupi, 1 Week ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 29
  1. #!/bin/bash
  2.  
  3. # Exit of first failure
  4. set -e
  5.  
  6. # Import common functions
  7. source mib3_common.sh
  8.  
  9. # Get gpio to board power relay
  10. power="`find_resource power`"
  11.  
  12. # Inform user
  13. echo "INFO: $0: Wait 3 seconds between swithing relay"
  14.  
  15. # Reset board by switching relay
  16. echo 0 > "$power"
  17. sleep 3
  18. echo 1 > "$power"
  19.  
  20. # Disable deep sleep
  21. sleep 3
  22. mib3_disable_deep_sleep.sh
  23.