Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SUBSYSTEM=="subsystem", KERNEL=="gpio", ACTION=="add", \
- RUN+="/bin/mkdir -p /dev/gpio"
- SUBSYSTEM=="gpio", ACTION=="add", TEST=="value", ATTR{label}!="sysfs", \
- RUN+="/bin/ln -sT '/sys/class/gpio/%k' /dev/gpio/%s{label}"
- #
- # ReWritten by: Matthijs van Duin and fiddled with by Seth
- # Corrects sys GPIO permissions on the BB so non-root users in the gpio group can manipulate bits
- #
- SUBSYSTEM=="gpio", ACTION=="add", \
- RUN+="/bin/chgrp -R gpio '/sys%p'", \
- RUN+="/bin/chmod -R g=u '/sys%p'"
- SUBSYSTEM=="subsystem", KERNEL=="gpio", ACTION=="add", \
- RUN+="/bin/chgrp gpio '/dev/gpio/'", \
- RUN+="/bin/chmod g=u '/dev/gpio/'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement