summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r--term-utils/agetty.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index 23cac403e..e5f2ff229 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -317,6 +317,7 @@ static ssize_t append(char *dest, size_t len, const char *sep, const char *src)
static void check_username (const char* nm);
static void login_options_to_argv(char *argv[], int *argc, char *str, char *username);
static void reload_agettys(void);
+static void print_issue_file(struct options *op, struct termios *tp);
/* Fake hostname for ut_host specified on command line. */
static char *fakehost;
@@ -452,7 +453,9 @@ int main(int argc, char **argv)
username = options.autolog;
}
- if ((options.flags & F_NOPROMPT) == 0) {
+ if (options.flags & F_NOPROMPT) { /* --skip-login */
+ print_issue_file(&options, &termios);
+ } else { /* regular (auto)login */
if (options.autolog) {
/* Autologin prompt */
do_prompt(&options, &termios);