AnonymousCookie37

New /usr/local/sbin/eStop

May 5th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Set the pin for input
  4. gpio -g mode 5 up
  5. gpio -g mode 5 in
  6.  
  7. # Set the variable through command substitution
  8. b=$(gpio -g read 5)
  9.  
  10. if [ "$1" = "-g" ]
  11. then
  12. echo .1.3.6.1.4.1.55617.1.3
  13. echo integer
  14. echo "$b"
  15. fi
  16. exit 0
Advertisement
Add Comment
Please, Sign In to add comment