aboutsummaryrefslogtreecommitdiff
path: root/config/ttys.in
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-03-16 22:45:53 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-03-16 22:45:53 +0000
commit437dd9c51167f085315a134253e8c4f18c63138d (patch)
treee71cf512b56796e5109ec3d9e722e058c2929917 /config/ttys.in
parentac1e123e56a2757cb3332e464fff6b23c36fdec1 (diff)
downloadhurd-437dd9c51167f085315a134253e8c4f18c63138d.tar.gz
hurd-437dd9c51167f085315a134253e8c4f18c63138d.tar.bz2
hurd-437dd9c51167f085315a134253e8c4f18c63138d.zip
Do not hardcode /libexec libexecdir
So that distributions can use the --libexecdir configure parameter. * configure.ac (AC_CONFIG_FILES): Add daemons/runsystem.hurd.sh. * config/ttys: Rename to ttys.in, replace /libexec with @libexecdir@. * config/Makefile (ttys): Generate from ttys.in * daemons/runsystem.hurd.sh.in (prefix): Define to @prefix@. (exec_prefix): Define to @exec_prefix@. (RUNCOM, RUNTTYS): Replace /libexec with @libexecdir@. * init/Makefile (init-CPPFLAGS): Define LIBEXECDIR. * init/init.c (main): Use LIBEXECDIR instead of hardcoding /libexec. * startup/Makefile (startup-CPPFLAGS): Define LIBEXECDIR. * startup/startup.c (start_child, launch_something): Use LIBEXECDIR instead of hardcoding /libexec.
Diffstat (limited to 'config/ttys.in')
-rw-r--r--config/ttys.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/ttys.in b/config/ttys.in
new file mode 100644
index 00000000..d78dc836
--- /dev/null
+++ b/config/ttys.in
@@ -0,0 +1,14 @@
+# Programs to be maintained on terminal lines. init runs these programs,
+# and restartsthem when they die. Note that in GNU, unlike in BSD, there
+# is no need to list pseudo-ttys here.
+
+# name program type status comments
+
+console "@libexecdir@/getty 9600" mach-gnu-color on secure trusted console
+tty1 "@libexecdir@/getty 38400" hurd on secure trusted console
+tty2 "@libexecdir@/getty 38400" hurd on secure trusted console
+tty3 "@libexecdir@/getty 38400" hurd on secure trusted console
+tty4 "@libexecdir@/getty 38400" hurd on secure trusted console
+tty5 "@libexecdir@/getty 38400" hurd on secure trusted console
+tty6 "@libexecdir@/getty 38400" hurd on secure trusted console
+#com0 "@libexecdir@/getty 9600" dialup on secure