summaryrefslogtreecommitdiff
path: root/rules.d
diff options
context:
space:
mode:
Diffstat (limited to 'rules.d')
-rw-r--r--rules.d/90-vconsole.rules.in12
-rw-r--r--rules.d/meson.build2
2 files changed, 14 insertions, 0 deletions
diff --git a/rules.d/90-vconsole.rules.in b/rules.d/90-vconsole.rules.in
new file mode 100644
index 0000000000..845785492b
--- /dev/null
+++ b/rules.d/90-vconsole.rules.in
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+#
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+# Each vtcon keeps its own state of fonts.
+#
+ACTION=="add", SUBSYSTEM=="vtconsole", KERNEL=="vtcon*", RUN+="{{ROOTLIBEXECDIR}}/systemd-vconsole-setup"
diff --git a/rules.d/meson.build b/rules.d/meson.build
index a391390292..a582e4e922 100644
--- a/rules.d/meson.build
+++ b/rules.d/meson.build
@@ -55,6 +55,8 @@ rules_in = [
['70-uaccess.rules', enable_logind and conf.get('HAVE_ACL') == 1],
['71-seat.rules', enable_logind],
['73-seat-late.rules', enable_logind],
+
+ ['90-vconsole.rules', conf.get('ENABLE_VCONSOLE') == 1],
]
foreach tuple : rules_in