Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- gpio4=`/usr/local/bin/gpio read 7`
- if [ "$gpio4" -eq "0" ]; then
- #logger GPIO 4 is $gpio4, shutting down!
- #shutdown -h now
- echo "PRESSED"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement