mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2024-12-16 10:58:57 +01:00
7ab92f2898
Similar system as raspbian via udev rules to change teh group. Adding the mycroft user to those groups.
14 lines
631 B
Plaintext
14 lines
631 B
Plaintext
SUBSYSTEM=="input", GROUP="input", MODE="0660"
|
|
SUBSYSTEM=="i2c-dev", GROUP="i2c", MODE="0660"
|
|
SUBSYSTEM=="spidev", GROUP="spi", MODE="0660"
|
|
SUBSYSTEM=="bcm2835-gpiomem", GROUP="gpio", MODE="0660"
|
|
SUBSYSTEM=="argon-*", GROUP="video", MODE="0660"
|
|
SUBSYSTEM=="rpivid-*", GROUP="video", MODE="0660"
|
|
|
|
SUBSYSTEM=="gpio", GROUP="gpio", MODE="0660"
|
|
SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c '\
|
|
chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio;\
|
|
chown -R root:gpio /sys/devices/virtual/gpio && chmod -R 770 /sys/devices/virtual/gpio;\
|
|
chown -R root:gpio /sys$devpath && chmod -R 770 /sys$devpath\
|
|
'"
|