http://bugzilla.novell.com/show_bug.cgi?id=601704
http://bugzilla.novell.com/show_bug.cgi?id=601704#c1
--- Comment #1 from Jan Engelhardt 2010-05-01 13:13:13 UTC ---
Current working setup:
+#%programs: /bin/grep
if [ "$nettype" = "dhcp" ]; then
# run dhcp
if [ "$interface" != "off" ]; then
+ # We need a carrier first, or DHCPDISCOVER will not get onto the wire.
+ # Unfortunately, dhcpcd does not wait for this by itself.
+ ip link set dev "$interface" up;
+ echo "$interface: waiting for LOWER_UP"
+ while ! ip -o link show dev "$interface" | grep -q LOWER_UP; do
+ sleep 1;
+ done;
+ echo "$interface: waiting for CARRIER"
+ while ip -o link show dev "$interface" | grep -q NO-CARRIER; do
+ sleep 1;
+ done;
+
echo "running dhcpcd on interface $interface"
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.