diff options
author | jkh <jkh@FreeBSD.org> | 1996-10-05 12:16:49 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-10-05 12:16:49 +0000 |
commit | dfd125f0a86568cf36774911597c36b4c6bedffa (patch) | |
tree | d9184d8f5b3cdf5dad46a4030e6ab47670ac6e89 /release | |
parent | 4da4b8bed3e9fc2fafa47bb795bf6a65b5eb4f94 (diff) | |
download | FreeBSD-src-dfd125f0a86568cf36774911597c36b4c6bedffa.zip FreeBSD-src-dfd125f0a86568cf36774911597c36b4c6bedffa.tar.gz |
Correct check for ensuring that the network configuration isn't fiddled with
when running multi-user.
Diffstat (limited to 'release')
-rw-r--r-- | release/sysinstall/tcpip.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c index 5116af6..0cc5c00 100644 --- a/release/sysinstall/tcpip.c +++ b/release/sysinstall/tcpip.c @@ -1,5 +1,5 @@ /* - * $Id: tcpip.c,v 1.45 1996/08/03 10:11:56 jkh Exp $ + * $Id: tcpip.c,v 1.46 1996/09/01 08:17:14 jkh Exp $ * * Copyright (c) 1995 * Gary J Palmer. All rights reserved. @@ -236,6 +236,11 @@ tcpOpenDialog(Device *devp) char help[FILENAME_MAX]; char title[80]; + if (!RunningAsInit) { + if (isDebug()) + msgDebug("Running multi-user, assuming that the network is already up\n"); + return DITEM_SUCCESS; + } save = savescr(); dialog_clear_norefresh(); /* We need a curses window */ @@ -521,14 +526,9 @@ tcpDeviceSelect(void) msgConfirm("No network devices available!"); status = FALSE; } - else if (cnt == 1 || (!RunningAsInit && !Fake)) { - /* If we're running in user mode, assume network already up */ - if (!RunningAsInit) { - if (DITEM_STATUS(tcpOpenDialog(devs[0]) == DITEM_FAILURE)) - return FALSE; - } - else - msgDebug("Running multi-user, assuming that the network is already up\n"); + else if (cnt == 1) { + if (DITEM_STATUS(tcpOpenDialog(devs[0]) == DITEM_FAILURE)) + return FALSE; mediaDevice = devs[0]; status = TRUE; } |