mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
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.
This commit is contained in:
parent
ad12e4be6d
commit
7ebbaaa7f4
|
@ -73,7 +73,7 @@ ACTION=="add", SUBSYSTEM=="net", KERNEL!="lo", RUN+="{{LIBEXECDIR}}/systemd-sysc
|
||||||
# Pull in backlight save/restore for all backlight devices and
|
# Pull in backlight save/restore for all backlight devices and
|
||||||
# keyboard backlights
|
# keyboard backlights
|
||||||
SUBSYSTEM=="backlight", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_WANTS}+="systemd-backlight@backlight:$name.service"
|
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 %}
|
{% endif %}
|
||||||
|
|
||||||
# Pull in rfkill save/restore for all rfkill devices
|
# Pull in rfkill save/restore for all rfkill devices
|
||||||
|
|
Loading…
Reference in a new issue