Troubleshooting
Change the first line from
#!/bin/sh" to "#!/bin/sh -x
. This will print the line from the shell script before executing it.You can get information about the current configuration of all the working GPIOs from the following file:
sudo cat /sys/kernel/debug/gpio