Advertisement
silver2row

i2c-dev

Dec 3rd, 2023
801
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. # /etc/udev/rules.d/80-i2c-noroot.rules
  2. #
  3. #udevadm test $(udevadm info --query=path --name=i2c-0)
  4. #
  5. SUBSYSTEM=="i2c-dev", GROUP="gpio", ACTION=="add", \
  6.         RUN+="/bin/chgrp -R gpio '/sys%p'", \
  7.         RUN+="/bin/chmod -R g=u '/sys%p'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement