feat: refactor sgclaw around zeroclaw compat runtime

This commit is contained in:
zyl
2026-03-26 16:23:31 +08:00
parent bca5b75801
commit ff0771a83f
1059 changed files with 409460 additions and 23 deletions

View File

@@ -0,0 +1,10 @@
# Allow the gpio group to control the Raspberry Pi onboard ACT LED
# via the Linux LED subsystem sysfs interface.
#
# Without this rule /sys/class/leds/ACT/{brightness,trigger} are
# root-only writable, which prevents zeroclaw from blinking the LED.
SUBSYSTEM=="leds", KERNEL=="ACT", ACTION=="add", \
RUN+="/bin/chgrp gpio /sys/%p/brightness", \
RUN+="/bin/chmod g+w /sys/%p/brightness", \
RUN+="/bin/chgrp gpio /sys/%p/trigger", \
RUN+="/bin/chmod g+w /sys/%p/trigger"