diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-09-17 13:33:14 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-09-17 13:33:14 +0000 |
commit | 4a50ae9ab3f6ff300f8ef520be0e8a352be39892 (patch) | |
tree | 684f5464340f01a2a1eeb470c1c49e4ff193a470 /usr.sbin/sysinstall/tcpip.c | |
parent | 61fd9882c105d224e989356e2aff60e25c87f058 (diff) | |
download | src-4a50ae9ab3f6ff300f8ef520be0e8a352be39892.tar.gz src-4a50ae9ab3f6ff300f8ef520be0e8a352be39892.zip |
Add a new netInteractive variable so that the interactiveness of the TCP
setup dialog from scripts is more controllable. No more biasing off of
hostname (which is now non-optional in the non-netInteractive case).
Requested by: pst
Notes
Notes:
svn path=/head/; revision=29537
Diffstat (limited to 'usr.sbin/sysinstall/tcpip.c')
-rw-r--r-- | usr.sbin/sysinstall/tcpip.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c index 33c7f3077a8c..f702e71706e4 100644 --- a/usr.sbin/sysinstall/tcpip.c +++ b/usr.sbin/sysinstall/tcpip.c @@ -1,5 +1,5 @@ /* - * $Id: tcpip.c,v 1.69 1997/06/18 05:11:37 jkh Exp $ + * $Id: tcpip.c,v 1.70 1997/09/08 11:09:11 jkh Exp $ * * Copyright (c) 1995 * Gary J Palmer. All rights reserved. @@ -211,8 +211,14 @@ tcpOpenDialog(Device *devp) save = savescr(); /* If non-interactive, jump straight over the dialog crap and into config section */ - if (variable_get(VAR_NONINTERACTIVE) && hostname[0]) - goto netconfig; + if (variable_get(VAR_NONINTERACTIVE) && !variable_get("netInteractive")) { + if (!hostname[0]) + msgConfirm("WARNING: hostname variable not set and is a non-optional\n" + "parameter. Please add this to your installation script\n" + "or set the netInteractive variable (see sysinstall man page)"); + else + goto netconfig; + } /* Now do all the screen I/O */ dialog_clear_norefresh(); |