summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/network.c
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2015-08-21 10:11:08 +0300
committerThomas Backlund <tmb@mageia.org>2015-08-21 10:11:08 +0300
commit71045e481971d5e18104e1bdbd0335d4b2e05eee (patch)
treef63ba3271099a44d3f7a4472001502946946f9e6 /mdk-stage1/network.c
parentd792d1fe46a1ea25f64a1203524392b30b7ce79b (diff)
downloaddrakx-71045e481971d5e18104e1bdbd0335d4b2e05eee.tar
drakx-71045e481971d5e18104e1bdbd0335d4b2e05eee.tar.gz
drakx-71045e481971d5e18104e1bdbd0335d4b2e05eee.tar.bz2
drakx-71045e481971d5e18104e1bdbd0335d4b2e05eee.tar.xz
drakx-71045e481971d5e18104e1bdbd0335d4b2e05eee.zip
2.14
Diffstat (limited to 'mdk-stage1/network.c')
-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 4d7f1ac6c..5507fab58 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -291,7 +291,7 @@ static int save_netinfo(struct interface_info * intf)
fprintf(f, "NETWORKING=yes\n");
fprintf(f, "FORWARD_IPV4=false\n");
- if (hostname && !intf->boot_proto == BOOTPROTO_DHCP)
+ if (hostname && !(intf->boot_proto == BOOTPROTO_DHCP))
fprintf(f, "HOSTNAME=%s\n", hostname);
if (gateway.s_addr != 0)
fprintf(f, "GATEWAY=%s\n", inet_ntoa(gateway));