summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2003-01-31 15:55:02 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2003-01-31 15:55:02 +0000
commit94132315b473b9250dfa95bdbe12cc784dbef75d (patch)
treef40c39efff35c9789e955fb395e98f8ba553d2e1 /mdk-stage1
parent70f2f9312e135de0347123f2a99bddcec1640865 (diff)
downloaddrakx-backup-do-not-use-94132315b473b9250dfa95bdbe12cc784dbef75d.tar
drakx-backup-do-not-use-94132315b473b9250dfa95bdbe12cc784dbef75d.tar.gz
drakx-backup-do-not-use-94132315b473b9250dfa95bdbe12cc784dbef75d.tar.bz2
drakx-backup-do-not-use-94132315b473b9250dfa95bdbe12cc784dbef75d.tar.xz
drakx-backup-do-not-use-94132315b473b9250dfa95bdbe12cc784dbef75d.zip
don't save hostname if intf->boot_proto == BOOTPROTO_DHCP
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 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);