diff options
Diffstat (limited to 'udev/99-pwm.rules')
-rw-r--r-- | udev/99-pwm.rules | 10 |
1 files changed, 6 insertions, 4 deletions
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 ; \ |