mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-22 20:46:29 +00:00
added udev rule to rpi-rf-mod package to allow addons to have write (#2854)
access to these led nodes.
This commit is contained in:
parent
f05294e51d
commit
623ebd8d38
@ -0,0 +1,4 @@
|
||||
# make sure all rpi-rf-mod led nodes in /sys are generated with permissions so that addons
|
||||
# can access it (e.g. raspberrymatic)
|
||||
SUBSYSTEM=="leds", ACTION=="add", KERNEL=="rpi_rf_mod:*", RUN+="/bin/chmod -R g=u,o=u /sys%p"
|
||||
SUBSYSTEM=="leds", ACTION=="change", KERNEL=="rpi_rf_mod:*", ENV{TRIGGER}!="none", RUN+="/bin/chmod -R g=u,o=u /sys%p"
|
@ -57,6 +57,7 @@ define RPI_RF_MOD_INSTALL_TARGET_CMDS
|
||||
if [[ -n "$(RPI_RF_MOD_DTS_FILE_ALT)" ]]; then \
|
||||
$(INSTALL) -D -m 0644 $(@D)/buildroot-external/package/rpi-rf-mod/dts/$(RPI_RF_MOD_DTS_FILE_ALT).dtbo $(BINARIES_DIR)/; \
|
||||
fi
|
||||
$(INSTALL) -D -m 644 $(RPI_RF_MOD_PKGDIR)/82-rpi-rf-mod-leds.rules $(TARGET_DIR)/lib/udev/rules.d/
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
Loading…
x
Reference in New Issue
Block a user