summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-08-05 10:07:09 +0000
committerjkh <jkh@FreeBSD.org>1999-08-05 10:07:09 +0000
commitc32597f76112e043f5178c1c2237ad6d753da072 (patch)
treefdb23fbb7b1e26dd070af1ed0bc988b9b13d7e7d /usr.sbin
parent14b85267a6439160d96ca09750db5bf0600f2561 (diff)
downloadFreeBSD-src-c32597f76112e043f5178c1c2237ad6d753da072.zip
FreeBSD-src-c32597f76112e043f5178c1c2237ad6d753da072.tar.gz
Stay on the serial console if installed that way.
Requested by: max
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/install.c4
-rw-r--r--usr.sbin/sysinstall/install.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c
index aba70fd..bce4e1c 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 aba70fd..bce4e1c 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);
}
}
OpenPOWER on IntegriCloud