aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/tcpip.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>2000-02-20 21:58:10 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>2000-02-20 21:58:10 +0000
commitf53cb8a8cc9b699c1f213d987a4fe41ca843d148 (patch)
tree6a304c642c781972f03e858210a5b341b7944d59 /usr.sbin/sysinstall/tcpip.c
parentdf2ef4c180f2e0bae98d1f14ce07756cf69213cc (diff)
Now I remember why I didn't write out the gateway in the DHCP case;
it was a feature.
Notes
Notes: svn path=/head/; revision=57365
Diffstat (limited to 'usr.sbin/sysinstall/tcpip.c')
-rw-r--r--usr.sbin/sysinstall/tcpip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c
index 48ce727c89b0..1d4609a80c26 100644
--- a/usr.sbin/sysinstall/tcpip.c
+++ b/usr.sbin/sysinstall/tcpip.c
@@ -369,7 +369,7 @@ netconfig:
if (domainname[0])
variable_set2(VAR_DOMAINNAME, domainname, 0);
if (gateway[0])
- variable_set2(VAR_GATEWAY, gateway, 1);
+ variable_set2(VAR_GATEWAY, gateway, use_dhcp ? 0 : 1);
if (nameserver[0])
variable_set2(VAR_NAMESERVER, nameserver, 0);
if (ipaddr[0])