summaryrefslogtreecommitdiffstats
path: root/loader2/net.c
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2007-11-20 14:11:33 +0100
committerMartin Sivak <msivak@redhat.com>2007-11-20 14:11:33 +0100
commit8108127f40ae760dc83496df3291aa1eb9529ea7 (patch)
treedd54a2073ec1f2f5374e31cf6f03b72aac39c920 /loader2/net.c
parentf4ee35a95372d658b0a872cb6bfcfcb4b5f0e0e2 (diff)
downloadanaconda-8108127f40ae760dc83496df3291aa1eb9529ea7.tar.gz
anaconda-8108127f40ae760dc83496df3291aa1eb9529ea7.tar.xz
anaconda-8108127f40ae760dc83496df3291aa1eb9529ea7.zip
Correct the previous patch, we were doing the nicdelay on the wrong place. (#349521)
Diffstat (limited to 'loader2/net.c')
-rw-r--r--loader2/net.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/loader2/net.c b/loader2/net.c
index 693b641ba..0f806e860 100644
--- a/loader2/net.c
+++ b/loader2/net.c
@@ -168,13 +168,6 @@ static int waitForLink(char * dev) {
* to five times */
logMessage(DEBUGLVL, "waiting for link %s...", dev);
- /* Networks with STP set up will give link when the port
- * is isolated from the network, and won't forward packets
- * until they decide we're not a switch. */
- logMessage(DEBUGLVL, "sleep (nicdelay) for %d secs first", post_link_sleep);
- sleep(post_link_sleep);
- logMessage(DEBUGLVL, "continuing...");
-
while (tries < num_link_checks) {
if (get_link_status(dev) != 0)
break;
@@ -182,8 +175,17 @@ static int waitForLink(char * dev) {
tries++;
}
logMessage(DEBUGLVL, " %d seconds.", tries);
- if (tries < num_link_checks)
+ if (tries < num_link_checks){
+ /* Networks with STP set up will give link when the port
+ * is isolated from the network, and won't forward packets
+ * until they decide we're not a switch. */
+ logMessage(DEBUGLVL, "sleep (nicdelay) for %d secs first", post_link_sleep);
+ sleep(post_link_sleep);
+ logMessage(DEBUGLVL, "continuing...");
+
return 0;
+ }
+
logMessage(WARNING, " no network link detected on %s", dev);
return 1;
}