udev: install rules file that ignore those nasty useless tty devices by default
This commit is contained in:
parent
206bf5c294
commit
5cc5d790f4
9
99-systemd.rules
Normal file
9
99-systemd.rules
Normal file
|
@ -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"
|
|
@ -19,6 +19,7 @@ ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
pkgsysconfdir=$(sysconfdir)/systemd
|
pkgsysconfdir=$(sysconfdir)/systemd
|
||||||
dbuspolicydir=$(sysconfdir)/dbus-1/system.d
|
dbuspolicydir=$(sysconfdir)/dbus-1/system.d
|
||||||
|
udevrulesdir=/lib/udev/rules.d
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-include $(top_builddir)/config.h \
|
-include $(top_builddir)/config.h \
|
||||||
|
@ -49,8 +50,12 @@ noinst_PROGRAMS = \
|
||||||
dbuspolicy_DATA = \
|
dbuspolicy_DATA = \
|
||||||
org.freedesktop.systemd1.conf
|
org.freedesktop.systemd1.conf
|
||||||
|
|
||||||
|
udevrules_DATA = \
|
||||||
|
99-systemd.rules
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
org.freedesktop.systemd1.conf
|
org.freedesktop.systemd1.conf
|
||||||
|
99-systemd.rules
|
||||||
|
|
||||||
BASIC_SOURCES= \
|
BASIC_SOURCES= \
|
||||||
util.c \
|
util.c \
|
||||||
|
|
Loading…
Reference in a new issue