Homepage › Forums › RetroPie Project › GPIO Adapter, ControlBlock etc. › Simple 1 button GPIO on off switch: 1 switch, 2 wires, 10 lines of code › Reply To: Simple 1 button GPIO on off switch: 1 switch, 2 wires, 10 lines of code
03/27/2016 at 01:01
#121585
snoogens
Participant
when I try to test the file with
sudo chmod755 /home/pi/scripts/shutdown.sh
sh /home/pi/scripts/shutdown.sh
I get this
: not foundripts/shutdown.sh: 1 /home/pi/scripts/shutdown.sh:
: permission deniedutdown.sh: 5: /home/pi/scripts/shutdown.sh: cannot creat /sys/class/gpio/export
: Directory nonexistantwn.sh Syntax error: end of file unexpected (expecting “do”)
I am very new to programing and have no idea why I am getting this error.
Thanks for any help you can be.