I have an init.d script that successfully runs scripts to an LED board from Adafruit using this software: https://github.com/hzeller/rpi-rgb-led-matrix
In addition, I've set up a simple single LED circuit and can operate it using this software: https://projects.drogon.net/raspberry-pi/wiringpi/the-gpio-utility/
When I run my gpio script for the LED it has no problems. When I run the loop to do both at the same time, no issues. All as user pi.
When init.d runs the loop on startup, the gpio script called up inside other scripts doesn't appear to run. It doesn't seem to set the pins to where they can be written to. When the loop is running, it should set
#!/bin/bash gpio mode 26 out end=$((SECONDS+20)) while [ $SECONDS -lt $end ]; do gpio write 26 1 sleep 2 gpio write 26 0 sleep 1 done
But it does not appear that the settings are changed when I use the gpio program to check
What is likely the culprit here? The script works just fine when run either as user
pi or as
sudo just not through
init.d or root.