util-linux/term-utils
Karel Zak b34f097e75 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>
2013-09-12 12:44:09 +02:00
..
Makemodule.am build-sys: add --disable-setterm 2013-04-26 13:47:54 +02:00
agetty.8 agetty: add \S to output /etc/os-release data 2013-09-12 12:44:09 +02:00
agetty.c agetty: add \S to output /etc/os-release data 2013-09-12 12:44:09 +02:00
mesg.1 docs: fix all man page groff warnings 2012-06-02 20:29:12 +02:00
mesg.c mesg: sync usage() with howto-usage-function.txt 2013-08-29 18:14:07 +01:00
reset reset: make scripts bourne sh compliant [checkbashisms] 2012-03-30 16:48:12 +02:00
reset.1 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
reset.033c reset: make scripts bourne sh compliant [checkbashisms] 2012-03-30 16:48:12 +02:00
script.1 docs: align script.1 with howto-man-page.txt 2011-10-03 20:32:45 +02:00
script.c script: use __noreturn__ for really last function [clang -Winvalid-noreturn] 2013-03-20 15:20:18 +01:00
scriptreplay.1 docs: make the section AVAILABILITY always come last in man pages 2013-03-20 14:09:24 +01:00
scriptreplay.c scriptreplay: fix compiler warning [-Wmissing-prototypes] 2012-07-16 18:48:27 +02:00
setterm.1 setterm: order man page items alphabetically 2011-12-16 11:25:10 +01:00
setterm.c setterm: fix various color option argument lists 2013-04-05 13:56:12 +02:00
ttymsg.c wall: check writing to a file descriptor was successful 2013-04-26 13:26:07 +02:00
ttymsg.h ttymsg: fix compiler warnings and use EXIT_ 2011-04-12 11:19:15 +02:00
wall.1 docs: add note to wall(1) about sessions which will not get message 2013-08-29 18:14:07 +01:00
wall.c last, utmpdump, agetty, wall, write: avoid compatibility hacks 2013-08-29 18:14:10 +01:00
write.1 textual: standardize the spelling of "superuser" 2013-06-07 11:31:37 +02:00
write.c last, utmpdump, agetty, wall, write: avoid compatibility hacks 2013-08-29 18:14:10 +01:00