summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-03-20 22:11:43 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-03-20 22:11:43 +0000
commitbdaeeba2b070efcd06e05d95ec4173405d951c47 (patch)
treeb6b214f3beca049522787011be3436f5690253eb /mdk-stage1
parent73441c5fa3e0dcbee7f34132bd3f8c9a0d4fcd75 (diff)
downloaddrakx-bdaeeba2b070efcd06e05d95ec4173405d951c47.tar
drakx-bdaeeba2b070efcd06e05d95ec4173405d951c47.tar.gz
drakx-bdaeeba2b070efcd06e05d95ec4173405d951c47.tar.bz2
drakx-bdaeeba2b070efcd06e05d95ec4173405d951c47.tar.xz
drakx-bdaeeba2b070efcd06e05d95ec4173405d951c47.zip
don't save DHCP_HOSTNAME if the value is void
Diffstat (limited to 'mdk-stage1')
-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)