]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: split out issue file functions to issuefile.c
authorKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 09:21:48 +0000 (11:21 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 11:14:57 +0000 (13:14 +0200)
commitb694eee5340db69c01d5ebbc9eff1423b4eaf2c8
tree4bb94f152fda313ed98304b6a20594c246dc6b10
parent3fc53d595e4a9eda5a109bd22f399a42404147bf
agetty: split out issue file functions to issuefile.c

Move issue file parsing, display and reload functions to a new
issuefile.c file: agetty_print_issue_file(), agetty_eval_issue_file(),
agetty_show_issue(), agetty_issue_is_changed(), agetty_reload(),
read_os_release(), output_special_char(), and all issuedir/issuefile
read helpers and network interface display functions.

Keep do_prompt(), get_logname() and wait_for_term_input() in
agetty.c as they are tightly coupled to the main login flow.

Signed-off-by: Karel Zak <kzak@redhat.com>
agetty-cmd/Makemodule.am
agetty-cmd/agetty.c
agetty-cmd/agetty.h
agetty-cmd/issuefile.c [new file with mode: 0644]
agetty-cmd/meson.build