diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1999-10-05 10:10:42 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1999-10-05 10:10:42 +0000 |
commit | 0ec4416c559c2b5294ff1412a69acfa3289b0bdb (patch) | |
tree | 893b3985f9df72b452855f909021e112c8f18508 /release/sysinstall | |
parent | 85e244dbfafb5679d3611797d84cbb05cb9e2ee7 (diff) |
Really fix the auto keyword botch correctly by just letting it
do its job and not override it when set.
Submitted by: Ruslan Ermilov <ru@FreeBSD.org>
Notes
Notes:
svn path=/head/; revision=51947
Diffstat (limited to 'release/sysinstall')
-rw-r--r-- | release/sysinstall/tcpip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c index 77cc98a21c14..ada16d0993af 100644 --- a/release/sysinstall/tcpip.c +++ b/release/sysinstall/tcpip.c @@ -391,10 +391,10 @@ 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) variable_set2(VAR_INTERFACES, ifaces = "lo0", 1); /* Only add it if it's not there already */ - if (!strstr(ifaces, devp->name)) { + if (strcmp(ifaces, "auto") && !strstr(ifaces, devp->name)) { sprintf(ifn, "%s %s", devp->name, ifaces); variable_set2(VAR_INTERFACES, ifn, 1); } |