[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/2] network --bootproto no longer implies DHCP.



---
 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]