moby: make the modem powerable by the user, without root

this should allow migrating eg25-control to a user service
This commit is contained in:
Colin 2024-04-26 17:19:26 +00:00
parent 46a513b263
commit 34842c00fe

View File

@ -134,5 +134,8 @@
# make Pinephone front LEDs writable by user.
SUBSYSTEM=="leds", DEVPATH=="*/*:indicator", RUN+="${chmod} g+w /sys%p/brightness", RUN+="${chown} :video /sys%p/brightness"
# make Modem controllable by user
DRIVER=="modem-power", RUN+="${chmod} g+w /sys%p/powered", RUN+="${chown} :networkmanager /sys%p/powered"
'';
}