diff options
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |