[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 2/2] network --bootproto no longer implies DHCP.
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH 2/2] network --bootproto no longer implies DHCP.
- Date: Wed, 1 Jul 2009 13:57:48 -0400
---
loader/net.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/loader/net.c b/loader/net.c
index d4c6390..1c35ac5 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -1544,11 +1544,9 @@ void setKickstartNetwork(struct loaderData_s * loaderData, int argc,
poptFreeContext(optCon);
}
- /* if they've specified dhcp/bootp or haven't specified anything,
- * use dhcp for the interface */
- if ((bootProto && (!strncmp(bootProto, "dhcp", 4) ||
- !strncmp(bootProto, "bootp", 4))) ||
- (!bootProto && !loaderData->ipv4)) {
+ /* if they've specified dhcp/bootp use dhcp for the interface */
+ if (bootProto && (!strncmp(bootProto, "dhcp", 4) ||
+ !strncmp(bootProto, "bootp", 4))) {
loaderData->ipv4 = strdup("dhcp");
loaderData->ipinfo_set = 1;
} else if (loaderData->ipv4) {
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]