]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
rules: split the rfkill subsystem rule (#6556)
authorXiang Fan <sfanxiang@gmail.com>
Tue, 8 Aug 2017 06:41:15 +0000 (01:41 -0500)
committerLennart Poettering <lennart@poettering.net>
Tue, 8 Aug 2017 06:41:15 +0000 (08:41 +0200)
This patch makes sure both rules are applied to rfkill devices.
Otherwise the ENV rule may be skipped if path_id fails.

Fixes: #6528
rules/99-systemd.rules.in

index edd1faa17a9e193fa4da291a7c012c9b02b2d4dd..62f0b98cd302534208afa951d1c7270d67dec5c3 100644 (file)
@@ -63,7 +63,8 @@ SUBSYSTEM=="backlight", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_W
 SUBSYSTEM=="leds", KERNEL=="*kbd_backlight", TAG+="systemd", IMPORT{builtin}="path_id", ENV{SYSTEMD_WANTS}+="systemd-backlight@leds:$name.service"
 
 # Pull in rfkill save/restore for all rfkill devices
-SUBSYSTEM=="rfkill", ENV{SYSTEMD_RFKILL}="1", IMPORT{builtin}="path_id"
+SUBSYSTEM=="rfkill", ENV{SYSTEMD_RFKILL}="1"
+SUBSYSTEM=="rfkill", IMPORT{builtin}="path_id"
 SUBSYSTEM=="misc", KERNEL=="rfkill", TAG+="systemd", ENV{SYSTEMD_WANTS}+="systemd-rfkill.socket"
 
 # Asynchronously mount file systems implemented by these modules as soon as they are loaded.