From 94132315b473b9250dfa95bdbe12cc784dbef75d Mon Sep 17 00:00:00 2001 From: Damien Chaumette Date: Fri, 31 Jan 2003 15:55:02 +0000 Subject: don't save hostname if intf->boot_proto == BOOTPROTO_DHCP --- mdk-stage1/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index 7cd4da6d8..2e146a10f 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -279,7 +279,7 @@ static int save_netinfo(struct interface_info * intf) { fprintf(f, "NETWORKING=yes\n"); fprintf(f, "FORWARD_IPV4=false\n"); - if (hostname) + if (hostname && !intf->boot_proto == BOOTPROTO_DHCP) fprintf(f, "HOSTNAME=%s\n", hostname); if (domain) fprintf(f, "DOMAINNAME=%s\n", domain); -- cgit v1.2.1