Create shutdowncheck

Bash script that handles GPIO initialization and shutdown