summaryrefslogtreecommitdiffstats
path: root/include/pathnames.h
diff options
context:
space:
mode:
authorKarel Zak2013-09-12 12:44:09 +0200
committerKarel Zak2013-09-12 12:44:09 +0200
commitb34f097e756ab2c762b1ce0f8c9813dbc7e3e308 (patch)
tree8adfbef2a57eda7b54a35e3b0e252d130f83652f /include/pathnames.h
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 'include/pathnames.h')
-rw-r--r--include/pathnames.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pathnames.h b/include/pathnames.h
index cc8a20b16..e25234c45 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -63,6 +63,7 @@
/* used in term-utils/agetty.c */
#define _PATH_ISSUE "/etc/issue"
+#define _PATH_OS_RELEASE "/etc/os-release"
#define _PATH_NUMLOCK_ON _PATH_LOCALSTATEDIR "/numlock-on"
#define _PATH_LOGINDEFS "/etc/login.defs"