summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/network.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-01-01 12:36:09 +0000
committerjkh <jkh@FreeBSD.org>1997-01-01 12:36:09 +0000
commit9df35f7f8dae1976701a83e7f25a306ca1e96dc7 (patch)
tree7c9eaed919b2052c59d74bdf3a7cebd68bf30b04 /release/sysinstall/network.c
parent5afae04de4c9c8101bcd36608e976a7015b08b0a (diff)
downloadFreeBSD-src-9df35f7f8dae1976701a83e7f25a306ca1e96dc7.zip
FreeBSD-src-9df35f7f8dae1976701a83e7f25a306ca1e96dc7.tar.gz
1. Correct bogon in cdromInit when running multi-user which took cdrom offline
if wrong version. 2. Make sure network device is initialized in ftpInit 3. Eliminate bogus size values in the menus. For now, we'll have to admit that nobody's added it up yet. In the future, these menus should be build dynamically anyway, not declared static. 4. Add more debugging to networking code to chase the mystery ppp device problem.
Diffstat (limited to 'release/sysinstall/network.c')
-rw-r--r--release/sysinstall/network.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/release/sysinstall/network.c b/release/sysinstall/network.c
index 8b342ff..c5a07b7 100644
--- a/release/sysinstall/network.c
+++ b/release/sysinstall/network.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: network.c,v 1.23 1996/12/11 09:35:03 jkh Exp $
+ * $Id: network.c,v 1.24 1996/12/12 08:23:50 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -251,6 +251,9 @@ startPPP(Device *devp)
return 0;
}
+ if (isDebug())
+ msgDebug("About to start PPP on device %s @ %s baud. Provider = %s\n", devp->devname, speed, provider);
+
if (!Fake && !(pid = fork())) {
int i, fd;
struct termios foo;
@@ -260,10 +263,11 @@ startPPP(Device *devp)
close(i);
/* We're going over to VTY2 */
- DebugFD = fd = open("/dev/ttyv2", O_RDWR);
+ fd = open("/dev/ttyv2", O_RDWR);
ioctl(0, TIOCSCTTY, &fd);
dup2(0, 1);
dup2(0, 2);
+ DebugFD = 2;
if (login_tty(fd) == -1)
msgDebug("ppp: Can't set the controlling terminal.\n");
signal(SIGTTOU, SIG_IGN);
OpenPOWER on IntegriCloud