summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index 0033cded2..c47657fff 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -283,7 +283,7 @@ static int save_netinfo(struct interface_info * intf) {
fprintf(f, "HOSTNAME=%s\n", hostname);
if (domain)
fprintf(f, "DOMAINNAME=%s\n", domain);
- if (dhcp_hostname)
+ if (dhcp_hostname && !streq(dhcp_hostname, ""))
fprintf(f, "DHCP_HOSTNAME=%s\n", dhcp_hostname);
if (gateway.s_addr != 0)