summaryrefslogtreecommitdiff
path: root/99-systemd.rules
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-10 19:18:21 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-10 19:18:21 +0200
commit5cc5d790f4593bbf7829faba502e4c00b3718a08 (patch)
tree726bf2743b205f83f32bc7c8fc58d9da926536dd /99-systemd.rules
parent206bf5c294d300cf05ee7b17c5bf42a21f6a52c0 (diff)
udev: install rules file that ignore those nasty useless tty devices by default
Diffstat (limited to '99-systemd.rules')
-rw-r--r--99-systemd.rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/99-systemd.rules b/99-systemd.rules
new file mode 100644
index 0000000000..c7c2073b8f
--- /dev/null
+++ b/99-systemd.rules
@@ -0,0 +1,9 @@
+# do not edit this file, it will be overwritten on update
+
+ACTION!="new|change", GOTO="systemd_end"
+
+KERNEL=="tty[0-9]|tty1[0-2]", GOTO="systemd_end"
+
+KERNEL=="tty[0-9]*", ENV{SYSTEMD_EXPOSE}="0"
+
+LABEL="systemd_end"