I set up my RaspberryPi with clean Raspbian (latest) and SMStools 3.1.15 (today latest).
Could anyone post an bash-script that can steer the GPIO ports of my pi (I'll use it as eventhandler). I can't do it myself because I have absolutely no knowledge of bashprogramming.
The script should verify an password and set gpio ports to 0 (for inactive) or 1 (for active) for example:
#execute following commands
#for activating GPIOs
sudo echo "0" > /sys/class/gpio/export
sudo echo "out" > /sys/class/gpio/gpio0/direction
#and something like
if password = mysecretpassword than sudo echo "1" > /sys/class/gpio/gpio0/value
I would be very happy if anyone can help me with an full commented script so that I can develop the rest by myself
P.S. I'm sorry for my bad english, if there is anything not clear or you can't understand it please wirte an e-mail to email@example.com ...