From 88ed36c1ec5303ee16a4259624bc58e13b5b503e Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Thu, 5 Aug 1999 10:07:09 +0000 Subject: [PATCH] Stay on the serial console if installed that way. Requested by: max --- release/sysinstall/install.c | 4 +++- usr.sbin/sade/install.c | 4 +++- usr.sbin/sysinstall/install.c | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c index aba70fda8743..bce4e1cdad6a 100644 --- a/release/sysinstall/install.c +++ b/release/sysinstall/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.241 1999/07/16 11:13:09 jkh Exp $ + * $Id: install.c,v 1.242 1999/07/18 10:18:05 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -754,6 +754,8 @@ installFixupBin(dialogMenuItem *self) if ((fp = fopen("/boot/loader.conf", "a")) != NULL) { fprintf(fp, "# -- sysinstall generated deltas -- #\n"); fprintf(fp, "userconfig_script_load=\"YES\"\n"); + if (!OnVTY) + fprintf(fp, "console=\"serial\"\n"); fclose(fp); } } diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index aba70fda8743..bce4e1cdad6a 100644 --- a/usr.sbin/sade/install.c +++ b/usr.sbin/sade/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.241 1999/07/16 11:13:09 jkh Exp $ + * $Id: install.c,v 1.242 1999/07/18 10:18:05 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -754,6 +754,8 @@ installFixupBin(dialogMenuItem *self) if ((fp = fopen("/boot/loader.conf", "a")) != NULL) { fprintf(fp, "# -- sysinstall generated deltas -- #\n"); fprintf(fp, "userconfig_script_load=\"YES\"\n"); + if (!OnVTY) + fprintf(fp, "console=\"serial\"\n"); fclose(fp); } } diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index aba70fda8743..bce4e1cdad6a 100644 --- a/usr.sbin/sysinstall/install.c +++ b/usr.sbin/sysinstall/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.241 1999/07/16 11:13:09 jkh Exp $ + * $Id: install.c,v 1.242 1999/07/18 10:18:05 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -754,6 +754,8 @@ installFixupBin(dialogMenuItem *self) if ((fp = fopen("/boot/loader.conf", "a")) != NULL) { fprintf(fp, "# -- sysinstall generated deltas -- #\n"); fprintf(fp, "userconfig_script_load=\"YES\"\n"); + if (!OnVTY) + fprintf(fp, "console=\"serial\"\n"); fclose(fp); } }