diff options
author | Werner Sembach <wse@tuxedocomputers.com> | 2024-01-19 20:56:15 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-01-22 23:03:35 +0100 |
commit | 7ebbaaa7f426b5bb11b4a697898844bf6d8b6ec9 (patch) | |
tree | 309969f4c6ed68759bc25002142118ac4612373d /rules.d | |
parent | Merge pull request #31044 from keszybz/uhttpd-alloca-print (diff) | |
download | systemd-7ebbaaa7f426b5bb11b4a697898844bf6d8b6ec9.tar.xz systemd-7ebbaaa7f426b5bb11b4a697898844bf6d8b6ec9.zip |
Fix systemd-backlight ignoring numbered kbd_backlight entries
If there are name collisions in the leds subsystem, the 2nd device node with the
colliding name gets automatically renamed by appending _1, the third by
appending _2 and so on.
This wildcard change makes sure that systemd-backlight also catches these
renamed nodes for kbd_backlight entries.
Diffstat (limited to 'rules.d')
-rw-r--r-- | rules.d/99-systemd.rules.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.d/99-systemd.rules.in b/rules.d/99-systemd.rules.in index 33624f88a5..df52415a8f 100644 --- a/rules.d/99-systemd.rules.in +++ b/rules.d/99-systemd.rules.in @@ -73,7 +73,7 @@ ACTION=="add", SUBSYSTEM=="net", KERNEL!="lo", RUN+="{{LIBEXECDIR}}/systemd-sysc # Pull in backlight save/restore for all backlight devices and # keyboard backlights SUBSYSTEM=="backlight", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_WANTS}+="systemd-backlight@backlight:$name.service" -SUBSYSTEM=="leds", KERNEL=="*kbd_backlight", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_WANTS}+="systemd-backlight@leds:$name.service" +SUBSYSTEM=="leds", KERNEL=="*kbd_backlight*", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_WANTS}+="systemd-backlight@leds:$name.service" {% endif %} # Pull in rfkill save/restore for all rfkill devices |