From 5cc5d790f4593bbf7829faba502e4c00b3718a08 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 10 Apr 2010 19:18:21 +0200 Subject: udev: install rules file that ignore those nasty useless tty devices by default --- 99-systemd.rules | 9 +++++++++ Makefile.am | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 99-systemd.rules 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" diff --git a/Makefile.am b/Makefile.am index dca7bc946c..18f27c4251 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ -- cgit v1.2.3-54-g00ecf