summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.8
diff options
context:
space:
mode:
authorKarel Zak2013-09-12 12:44:09 +0200
committerKarel Zak2013-09-12 12:44:09 +0200
commitb34f097e756ab2c762b1ce0f8c9813dbc7e3e308 (patch)
tree8adfbef2a57eda7b54a35e3b0e252d130f83652f /term-utils/agetty.8
parentbuild-sys: add *vim and clang_complete to gitignore (diff)
downloadkernel-qcow2-util-linux-b34f097e756ab2c762b1ce0f8c9813dbc7e3e308.tar.gz
kernel-qcow2-util-linux-b34f097e756ab2c762b1ce0f8c9813dbc7e3e308.tar.xz
kernel-qcow2-util-linux-b34f097e756ab2c762b1ce0f8c9813dbc7e3e308.zip
agetty: add \S to output /etc/os-release data
This patch allows to use a new \S or \S{VARNAME} sequence in the /etc/issue file. The sequence prints data from /etc/os-release. The reason is to keep /etc/issue file distribution and release independent. The \S{ANSI_COLOR} is converted to the real terminal escape seq. For example: \S Kernel \r on an \m (\l) or more complex example: Welcome to \S{ANSI_COLOR}\S{NAME}0m \S{VERSION} Report bugs at \S{BUG_REPORT_URL}. See http://www.freedesktop.org/software/systemd/man/os-release.html fr more details about /etc/issue. Based on patch from Bill Nottingham <notting@redhat.com>. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/agetty.8')
-rw-r--r--term-utils/agetty.813
1 files changed, 12 insertions, 1 deletions
diff --git a/term-utils/agetty.8 b/term-utils/agetty.8
index 7a0df7804..d77955573 100644
--- a/term-utils/agetty.8
+++ b/term-utils/agetty.8
@@ -320,6 +320,14 @@ Insert the current date.
.TP
s
Insert the system name, the name of the operating system. Same as `uname \-s'.
+See also \\S escape code.
+.TP
+S or S{VARIABLE}
+Insert the VARIABLE data from \fI/etc/os-release\fP. If the VARIABLE argument
+is not specified then use PRETTY_NAME from the file or the system name (see \\s).
+This escape code allows to keep \fI/etc/issue\fP distribution and release
+independent. Note that \\S{ANSI_COLOR} is converted to the real terminal
+escape sequence.
.TP
l
Insert the name of the current tty line.
@@ -378,11 +386,14 @@ the system status file.
.B /etc/issue
printed before the login prompt.
.TP
+.B /etc/os-release
+operating system identification data.
+.TP
.B /dev/console
problem reports (if syslog(3) is not used).
.TP
.B /etc/inittab
-\fIinit\fP(8) configuration file.
+\fIinit\fP(8) configuration file for SysV-style init daemon.
.SH BUGS
.ad
.fi