summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/tcpip.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2000-01-28 02:15:07 +0000
committerjkh <jkh@FreeBSD.org>2000-01-28 02:15:07 +0000
commit607f2f5aee4abee8c590d3c89fb3e4ee377c5ffc (patch)
treea3b36dc7811af17400cbd1b6a9fc5fe152dfb03c /usr.sbin/sysinstall/tcpip.c
parenta6ded040efff901130aab83a3aefe2893fc68e53 (diff)
downloadFreeBSD-src-607f2f5aee4abee8c590d3c89fb3e4ee377c5ffc.zip
FreeBSD-src-607f2f5aee4abee8c590d3c89fb3e4ee377c5ffc.tar.gz
OK, I admit defeat - allow the user to override hostname and gateway
values set by dhcp.
Diffstat (limited to 'usr.sbin/sysinstall/tcpip.c')
-rw-r--r--usr.sbin/sysinstall/tcpip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c
index 6a83bb5..48ce727 100644
--- a/usr.sbin/sysinstall/tcpip.c
+++ b/usr.sbin/sysinstall/tcpip.c
@@ -363,13 +363,13 @@ netconfig:
char *pccard;
if (hostname[0]) {
- variable_set2(VAR_HOSTNAME, hostname, use_dhcp ? 0 : 1);
+ variable_set2(VAR_HOSTNAME, hostname, 1);
sethostname(hostname, strlen(hostname));
}
if (domainname[0])
variable_set2(VAR_DOMAINNAME, domainname, 0);
if (gateway[0])
- variable_set2(VAR_GATEWAY, gateway, use_dhcp ? 0 : 1);
+ variable_set2(VAR_GATEWAY, gateway, 1);
if (nameserver[0])
variable_set2(VAR_NAMESERVER, nameserver, 0);
if (ipaddr[0])
OpenPOWER on IntegriCloud