Flyspray task #928 - Awfully slow network start with broken link
cable
Flyspray - The bug killer!
btsadmin at pld-linux.org
Tue Oct 19 13:13:20 CEST 2004
THIS IS AN AUTOMATICALLY GENERATED MESSAGE, DO NOT REPLY
------------------------------------------------------------------------
This is a message from the Flyspray bug tracking system at PLD 2.x (Ac)
Paweł Sakowski (saq) has just modified the following task. You are
receiving this because you are on the notification list.
Changed fields are prefixed with asterisks (**)
-----
Project: PLD 2.x (Ac)
Summary: Awfully slow network start with broken link cable
Task Type: Bug Report
Category: rc-scripts
** Status: New
Operating System: All
Severity: Low
Priority Normal
Reported Version: PLD 2.0:0.4.0.13-1
Due in Version:
Percent Complete: 0
Details: When PLD starts networking and the network cable is not
connected, I have a looong delay (probably in dhcp client).
The simple solution is to use mii-tool to detect "link failed" and exit
the /sbin/ifup script early:
diff -c /sbin/ifup.org /sbin/ifup
*** /sbin/ifup.org 2004-05-02 20:50:35.000000000 +0200
--- /sbin/ifup 2004-07-08 10:06:10.211016776 +0200
***************
*** 75,80 ****
--- 75,89 ----
exit 1
fi
+ if [ "$DEVICETYPE" = "eth" -a -x /sbin/mii-tool ]; then
+ # echo checking device ${DEVICE}
+ if (/sbin/mii-tool ${DEVICE} | grep -q "no link"); then
+ nls "No link - check cable at %s" ${DEVICE}
+ exit 1
+ fi
+ fi
+
+
if is_yes "$SLAVE" && [ -n "$MASTER" -a -x /sbin/ifenslave ]; then
RFLAG="" && is_yes "${RECIEVE-ONLY}" && RFLAG="-r"
-----
You can get more information about this task at the following URL:
https://pldbugs.bnet.pl/index.php?do=details&id=928
More information about the pld-bugs
mailing list