chiark / gitweb /
logind: write rules files atomically
[elogind.git] / src / 99-systemd.rules
index 4fba6d4d0b699591a70f75e99acf69646b4114b4..c079c35304e83f63e0fca8898454767be35fd5c7 100644 (file)
@@ -5,12 +5,10 @@
 #  the Free Software Foundation; either version 2 of the License, or
 #  (at your option) any later version.
 
-ACTION!="add|change", GOTO="systemd_end"
+ACTION=="remove", GOTO="systemd_end"
 
 SUBSYSTEM=="tty", KERNEL=="tty[0-9]|tty1[0-2]", TAG+="systemd"
-SUBSYSTEM=="tty", KERNEL=="ttyS*", TAG+="systemd"
-SUBSYSTEM=="tty", KERNEL=="hvc*", TAG+="systemd"
-SUBSYSTEM=="tty", KERNEL=="ttyUSB*", TAG+="systemd"
+SUBSYSTEM=="tty", KERNEL=="tty[a-zA-Z]*|hvc*", TAG+="systemd"
 
 SUBSYSTEM=="block", KERNEL!="ram*|loop*", TAG+="systemd"
 SUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0"