Skip to content

Commit

Permalink
modified 82-hss_led.rules udev rule to only match rpi_rf_mod led nodes
Browse files Browse the repository at this point in the history
and make sure to not modify permissions for all LED nodes.
  • Loading branch information
jens-maus committed Oct 23, 2023
1 parent 3700374 commit 7b54e57
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# make sure all led nodes in /sys are generated with group permissions that hss_led
# can access them accordingly
SUBSYSTEM=="leds", ACTION=="add", RUN+="/bin/chgrp -R hssled /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
SUBSYSTEM=="leds", ACTION=="change", ENV{TRIGGER}!="none", RUN+="/bin/chgrp -R hssled /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
# make sure all rpi-rf-mod led nodes in /sys are generated with group permissions
# that hss_led can access them accordingly
SUBSYSTEM=="leds", ACTION=="add", KERNEL=="rpi_rf_mod:*", RUN+="/bin/chgrp -R hssled /sys%p", RUN+="/bin/chmod -R g=u /sys%p"
SUBSYSTEM=="leds", ACTION=="change", KERNEL=="rpi_rf_mod:*", ENV{TRIGGER}!="none", RUN+="/bin/chgrp -R hssled /sys%p", RUN+="/bin/chmod -R g=u /sys%p"

0 comments on commit 7b54e57

Please sign in to comment.