diff options
author | jkh <jkh@FreeBSD.org> | 1999-10-05 10:10:42 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-10-05 10:10:42 +0000 |
commit | 244183965b19077c90df083cad73de57d9229189 (patch) | |
tree | 858f91de640f675f2906d660bd9af2f2fbf52f7f /usr.sbin | |
parent | 97f1a629a66a313946bdb6130bc4b35ef74b8a02 (diff) | |
download | FreeBSD-src-244183965b19077c90df083cad73de57d9229189.zip FreeBSD-src-244183965b19077c90df083cad73de57d9229189.tar.gz |
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>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sysinstall/tcpip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c index 77cc98a..ada16d0 100644 --- a/usr.sbin/sysinstall/tcpip.c +++ b/usr.sbin/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); } |