sorry for the beginner's question, but I'm a bit stuck.
Debian Buster on an OrangePi Zero+
from root # echo "6" > /sys/class/gpio/export
works fine as root
the same line in an bash script executed as root fails w/ Permission denied
The script is owner:root
mod is 2777
From user Level $ sudo echo "6" > /sys/class/gpio/export
fails as well
I need to execute this statement w/in a shell script (can be root)! so what can I do?