OK, I admit defeat - allow the user to override hostname and gateway

values set by dhcp.
This commit is contained in:
Jordan K. Hubbard 2000-01-28 02:15:07 +00:00
parent 78bd1e8a57
commit 846a006bb2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56713
2 changed files with 4 additions and 4 deletions

View File

@ -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])

View File

@ -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])