diff options
author | Damien Chaumette <dchaumette@mandriva.com> | 2003-01-31 15:55:02 +0000 |
---|---|---|
committer | Damien Chaumette <dchaumette@mandriva.com> | 2003-01-31 15:55:02 +0000 |
commit | 94132315b473b9250dfa95bdbe12cc784dbef75d (patch) | |
tree | f40c39efff35c9789e955fb395e98f8ba553d2e1 /mdk-stage1 | |
parent | 70f2f9312e135de0347123f2a99bddcec1640865 (diff) | |
download | drakx-94132315b473b9250dfa95bdbe12cc784dbef75d.tar drakx-94132315b473b9250dfa95bdbe12cc784dbef75d.tar.gz drakx-94132315b473b9250dfa95bdbe12cc784dbef75d.tar.bz2 drakx-94132315b473b9250dfa95bdbe12cc784dbef75d.tar.xz drakx-94132315b473b9250dfa95bdbe12cc784dbef75d.zip |
don't save hostname if intf->boot_proto == BOOTPROTO_DHCP
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); |