summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/tcpip.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2000-02-20 21:58:10 +0000
committerjkh <jkh@FreeBSD.org>2000-02-20 21:58:10 +0000
commitd76baa418191d78493fbf0132ea24797305eb6b9 (patch)
tree7d22be089b51c5092048bad52f971fb644a60239 /usr.sbin/sysinstall/tcpip.c
parentb60f3c5a4a0c7d1a9b7de9decb52d5d12f3c3b55 (diff)
downloadFreeBSD-src-d76baa418191d78493fbf0132ea24797305eb6b9.zip
FreeBSD-src-d76baa418191d78493fbf0132ea24797305eb6b9.tar.gz
Now I remember why I didn't write out the gateway in the DHCP case;
it was a feature.
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 48ce727..1d4609a 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])
OpenPOWER on IntegriCloud