]> git.ipfire.org Git - people/ms/systemd.git/commitdiff
udev: install rules file that ignore those nasty useless tty devices by default
authorLennart Poettering <lennart@poettering.net>
Sat, 10 Apr 2010 17:18:21 +0000 (19:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 10 Apr 2010 17:18:21 +0000 (19:18 +0200)
99-systemd.rules [new file with mode: 0644]
Makefile.am

diff --git a/99-systemd.rules b/99-systemd.rules
new file mode 100644 (file)
index 0000000..c7c2073
--- /dev/null
@@ -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"
index dca7bc946c30eee846ff45154cf0f01a85dde836..18f27c42513c707f42cde46466d6e41c476c275a 100644 (file)
@@ -19,6 +19,7 @@ ACLOCAL_AMFLAGS = -I m4
 
 pkgsysconfdir=$(sysconfdir)/systemd
 dbuspolicydir=$(sysconfdir)/dbus-1/system.d
+udevrulesdir=/lib/udev/rules.d
 
 AM_CPPFLAGS = \
         -include $(top_builddir)/config.h \
@@ -49,8 +50,12 @@ noinst_PROGRAMS = \
 dbuspolicy_DATA = \
        org.freedesktop.systemd1.conf
 
+udevrules_DATA = \
+       99-systemd.rules
+
 EXTRA_DIST = \
        org.freedesktop.systemd1.conf
+       99-systemd.rules
 
 BASIC_SOURCES= \
         util.c \