summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/termcap.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-24 22:37:44 +0000
committerjkh <jkh@FreeBSD.org>1995-05-24 22:37:44 +0000
commitf12325f10506a028f4908783cd3ee6224ed86bbf (patch)
tree2126dd375a22d9a5509cad1e3f4982b216d40218 /usr.sbin/sysinstall/termcap.c
parent2f34e0b4e61258aab1d6085f83a3a74ceff943d5 (diff)
downloadFreeBSD-src-f12325f10506a028f4908783cd3ee6224ed86bbf.zip
FreeBSD-src-f12325f10506a028f4908783cd3ee6224ed86bbf.tar.gz
1. Spawn a shell on VTY4 and leave it lying around.
2. Bring in Gary's prompt stuff in extractGeneric. 3. Add another global for telling when we're running as init.
Diffstat (limited to 'usr.sbin/sysinstall/termcap.c')
-rw-r--r--usr.sbin/sysinstall/termcap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/termcap.c b/usr.sbin/sysinstall/termcap.c
index 2cd8158..69522c6 100644
--- a/usr.sbin/sysinstall/termcap.c
+++ b/usr.sbin/sysinstall/termcap.c
@@ -31,6 +31,8 @@ set_termcap(void)
OnVTY = OnSerial = FALSE;
if (getpid() != 1)
DebugFD = open("sysinstall.debug", O_WRONLY|O_CREAT|O_TRUNC, 0644);
+ else
+ RunningAsInit = TRUE;
term = getenv("TERM");
stat = ioctl(STDERR_FILENO, GIO_COLOR, &ColorDisplay);
if (stat < 0) {
OpenPOWER on IntegriCloud