diff options
Diffstat (limited to 'udev')
-rw-r--r-- | udev/98-gpiod.rules | 2 | ||||
-rw-r--r-- | udev/99-pwm.rules | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/udev/98-gpiod.rules b/udev/98-gpiod.rules index 4961d33..01a05ed 100644 --- a/udev/98-gpiod.rules +++ b/udev/98-gpiod.rules @@ -1,2 +1,2 @@ -# Grants GPIO access to the gpio group. +# This rule grants the `gpio` group access to GPIO devices. SUBSYSTEM=="gpio", KERNEL=="gpiochip*", GROUP="gpiod", MODE="0660" diff --git a/udev/99-pwm.rules b/udev/99-pwm.rules index 2b95f14..8407ebe 100644 --- a/udev/99-pwm.rules +++ b/udev/99-pwm.rules @@ -1,7 +1,9 @@ -# Grants PWM access to the pwm group. Because UDEV is async, there might be a -# slight delay between changes to the directory tree (e.g., a new PWM channel -# being added) and changes to permissions taking effect. The command -# `udevadm settle` can be used to wait for the rule to finish execution. +# This UDEV rule provides the `pwm` user group with access to PWM devices. +# Note that UDEV operates asynchronously, so there may be a slight delay +# between changes to the directory structure (e.g., when a new PWM channel is +# added) and the corresponding permission updates. To ensure the rule has been +# fully applied, you can use the command `udevadm settle` to wait for the UDEV +# process to complete. SUBSYSTEM=="pwm*", PROGRAM="/bin/sh -c ' \ chown -R root:pwm /sys/class/pwm ; \ chmod -R 770 /sys/class/pwm ; \ |