diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2025-12-10 23:48:09 +0000 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2025-12-10 23:48:09 +0000 |
| commit | 8dae3b25dd6b73730c4420581697ba13deb97207 (patch) | |
| tree | f12486430aebaf307393c2e9b65f1390f06e7aee /sysconf | |
| parent | 779c3eec80acb1ed790188c6e019f80a7ed52400 (diff) | |
Diffstat (limited to 'sysconf')
| -rw-r--r-- | sysconf/98-gpiod.rules | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysconf/98-gpiod.rules b/sysconf/98-gpiod.rules index a7275d9..1f3d394 100644 --- a/sysconf/98-gpiod.rules +++ b/sysconf/98-gpiod.rules @@ -1 +1,3 @@ -SUBSYSTEM=="gpio", KERNEL=="gpiochip*", GROUP="gpiod", MODE="0660" +SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c ' \ + chown root:gpiod /dev/gpiochip0 && chmod 660 /dev/gpiochip0 \ +'" |
