]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: add \S to output /etc/os-release data
authorKarel Zak <kzak@redhat.com>
Thu, 12 Sep 2013 10:44:09 +0000 (12:44 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Sep 2013 10:44:09 +0000 (12:44 +0200)
commitb34f097e756ab2c762b1ce0f8c9813dbc7e3e308
tree8adfbef2a57eda7b54a35e3b0e252d130f83652f
parent35ab31266e2e788b80437809d39e1d8e4806e19c
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}\e0m \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>
include/pathnames.h
term-utils/agetty.8
term-utils/agetty.c