Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Set the pin for input
- gpio -g mode 5 up
- gpio -g mode 5 in
- # Set the variable through command substitution
- b=$(gpio -g read 5)
- if [ "$1" = "-g" ]
- then
- echo .1.3.6.1.4.1.55617.1.3
- echo integer
- echo "$b"
- fi
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment