diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 2001-09-15 02:28:18 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 2001-09-15 02:28:18 +0000 |
| commit | 6a903a9b76128daddc3f8ad8fd6f6ab652626bd0 (patch) | |
| tree | 1c8da3f6087f8d7dd5aa70f77658a22c66881233 /usr.sbin/sysinstall | |
| parent | cbf2d71f0ddb580fec7f1038a4f10ccbccb987d2 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/sysinstall')
| -rw-r--r-- | usr.sbin/sysinstall/tcpip.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c index 424b02719c08..ca219f6d5fe9 100644 --- a/usr.sbin/sysinstall/tcpip.c +++ b/usr.sbin/sysinstall/tcpip.c @@ -350,9 +350,14 @@ tcpOpenDialog(Device *devp) else { /* See if there are any defaults */ char *cp; - /* Try a RTSOL scan if such behavior is desired */ + /* + * Try a RTSOL scan if such behavior is desired. + * If the variable was configured and is YES, do it. + * If it was configured to anything else, treat it as NO. + * Otherwise, ask the question interactively. + */ if (!variable_cmp(VAR_TRY_RTSOL, "YES") || - ((variable_cmp(VAR_TRY_RTSOL, "NO")) && (!msgNoYes("Do you want to try IPv6 configuration of the interface?")))) { + (variable_get(VAR_TRY_RTSOL)==0 && !msgNoYes("Do you want to try IPv6 configuration of the interface?"))) { int i; int len; @@ -376,9 +381,15 @@ tcpOpenDialog(Device *devp) use_rtsol = FALSE; } - /* First try a DHCP scan if such behavior is desired */ + + /* + * First try a DHCP scan if such behavior is desired. + * If the variable was configured and is YES, do it. + * If it was configured to anything else, treat it as NO. + * Otherwise, ask the question interactively. + */ if (!variable_cmp(VAR_TRY_DHCP, "YES") || - ((variable_cmp(VAR_TRY_DHCP, "NO")) && (!msgNoYes("Do you want to try DHCP configuration of the interface?")))) { + (variable_get(VAR_TRY_DHCP)==0 && !msgNoYes("Do you want to try DHCP configuration of the interface?"))) { Mkdir("/var/db"); Mkdir("/var/run"); Mkdir("/tmp"); |
