From c9272a6f475ce6bc60d5f6a7c05cf373716bd373 Mon Sep 17 00:00:00 2001 From: jkh Date: Fri, 26 May 1995 08:41:52 +0000 Subject: Totally revamp the TCP/IP dialog; now network selection makes a bit more sense. Root floppy (which actually may be able to go completely away at some point soon!) is now loadable from ftp/nfs/dos as well as CDROM and (of course) floppy. Fix more problems on Poul's Gripe List. --- usr.sbin/sysinstall/termcap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.sbin/sysinstall/termcap.c') diff --git a/usr.sbin/sysinstall/termcap.c b/usr.sbin/sysinstall/termcap.c index 99cde148..ea8a38a 100644 --- a/usr.sbin/sysinstall/termcap.c +++ b/usr.sbin/sysinstall/termcap.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -64,8 +65,11 @@ set_termcap(void) } } if (DebugFD == -1) { + int i; + DebugFD = open("/dev/ttyv1", O_WRONLY); - ioctl(DebugFD, TIOCCONS, (char *)NULL); + i = ioctl(DebugFD, TIOCCONS, (char *)NULL); + msgDebug("ioctl(%d, TIOCCONS, NULL) = %d (%s)", DebugFD, i, !i ? "success" : strerror(errno)); } OnVTY = TRUE; } -- cgit v1.1