looks like it was working but needed to first manually chown gpio group to export and unexport values.
FYI the rule doesn't change the owner/permission for the directories of /sys/call/gpio but their subdirectories yes.
Further because of the soft links therein for device and subsystem find will report loop detected but the || true apparently suppresses that error and will continue
Also must include the action add so it will be done for each new in export.
FYI the rule doesn't change the owner/permission for the directories of /sys/call/gpio but their subdirectories yes.
Further because of the soft links therein for device and subsystem find will report loop detected but the || true apparently suppresses that error and will continue
Also must include the action add so it will be done for each new in export.
Code:
SUBSYSTEM=="gpio*", ACTION=="add", PROGRAM="/bin/sh -c 'find -L /sys/class/gpio/ -maxdepth 2 -exec chown root:gpio {} \; -exec chmod 770 {} \; || true'"