summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1999-09-27 21:48:28 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1999-09-27 21:48:28 +0000
commit222e52ceaea83a708cf5ffea91ee4e2a5a39935c (patch)
tree4925ebcd29949f0b128476182a7ee4dedb943b0b
parentfe4a1c892b99496dc1202a2cce961c871c16c3d1 (diff)
Notes
-rw-r--r--release/sysinstall/tcpip.c2
-rw-r--r--usr.sbin/sysinstall/tcpip.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c
index 77cc98a21c14..d0a77ac411be 100644
--- a/release/sysinstall/tcpip.c
+++ b/release/sysinstall/tcpip.c
@@ -391,7 +391,7 @@ netconfig:
sprintf(temp, "inet %s %s netmask %s", ipaddr, extras, netmask);
variable_set2(ifn, temp, 1);
ifaces = variable_get(VAR_INTERFACES);
- if (!ifaces || !strcmp(ifaces, "auto"))
+ if (!ifaces || (ifaces && !strcmp(ifaces, "auto")))
variable_set2(VAR_INTERFACES, ifaces = "lo0", 1);
/* Only add it if it's not there already */
if (!strstr(ifaces, devp->name)) {
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c
index 77cc98a21c14..d0a77ac411be 100644
--- a/usr.sbin/sysinstall/tcpip.c
+++ b/usr.sbin/sysinstall/tcpip.c
@@ -391,7 +391,7 @@ netconfig:
sprintf(temp, "inet %s %s netmask %s", ipaddr, extras, netmask);
variable_set2(ifn, temp, 1);
ifaces = variable_get(VAR_INTERFACES);
- if (!ifaces || !strcmp(ifaces, "auto"))
+ if (!ifaces || (ifaces && !strcmp(ifaces, "auto")))
variable_set2(VAR_INTERFACES, ifaces = "lo0", 1);
/* Only add it if it's not there already */
if (!strstr(ifaces, devp->name)) {