]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: extend --issue-file to support multiple paths
authorKarel Zak <kzak@redhat.com>
Tue, 19 May 2020 08:55:20 +0000 (10:55 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 19 May 2020 08:55:20 +0000 (10:55 +0200)
commite327a7acd60c736c9628264bea844ddac1802a4a
treec12faf668a7b402b87558aced346737fb948f2ed
parent10016339916c27a4f5ba7d3e3f07644107bf182f
agetty: extend --issue-file to support multiple paths

The current default behavior is to print the first issue file/dir and
all alternative locations are used as a backup solution only. If something
is found than the rest is ignored. The --issue-file allow to overwrite
this default behavior, but currently it supports only one file/dir.

This patch extend --issue-file to support ':' separated list of paths
and *all* the files (if exist and no empty) in the list are printed.

 agetty --issue-file=/etc/issue:/etc/issue.d:/run/issue:/run/issue.d:/usr/lib/issue:/usr/lib/issue.d

Addresses: https://github.com/karelzak/util-linux/issues/1041
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.1
term-utils/agetty.8
term-utils/agetty.c