aboutsummaryrefslogtreecommitdiff
path: root/udev/99-pwm.rules
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2025-01-27 14:51:28 +0000
committerPaul Oliver <contact@pauloliver.dev>2025-01-29 04:12:57 +0000
commit9d2f95bb58f856aaf9142426e90e5783c98af8f1 (patch)
tree9453d5cbed1ae2165e6c8f0824ded00d2372e7bd /udev/99-pwm.rules
parent9310ba7e17f97c4570dce33552b3605155ca5c0c (diff)
Makes doc-comments cleaner/more elegant
Diffstat (limited to 'udev/99-pwm.rules')
-rw-r--r--udev/99-pwm.rules10
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 ; \