From: Werner Sembach Date: Fri, 19 Jan 2024 19:56:15 +0000 (+0100) Subject: Fix systemd-backlight ignoring numbered kbd_backlight entries X-Git-Tag: v256-rc1~1075 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ebbaaa7f426b5bb11b4a697898844bf6d8b6ec9;p=thirdparty%2Fsystemd.git 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. --- diff --git a/rules.d/99-systemd.rules.in b/rules.d/99-systemd.rules.in index 33624f88a5f..df52415a8f2 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