This patch seems to work ok.

-- 
see shy jo
--- /lib/udev/net.agent	2006-11-26 18:22:36.000000000 -0500
+++ net.agent	2006-12-25 23:09:05.000000000 -0500
@@ -21,16 +21,13 @@
 
 wait_for_interface() {
     local interface=$1
-    local timeout=${2:-120}
 
-    while [ $timeout != 0 ]; do
-	grep --no-messages --quiet "^${interface}=" \
-		/etc/network/run/ifstate && return 0
+    while :; do
+	if [ "$(cat /sys/class/net/lo/operstate 2>/dev/null)" != down ]; then
+		return 0
+	fi
 	sleep 1
-	timeout=$(($timeout - 1))
     done
-
-    return 1
 }
 
 net_ifup() {
@@ -49,9 +46,7 @@
 	exit 0
     fi
 
-    if ! wait_for_interface lo $IFUP_TIMEOUT; then
-	mesg "Cannot raise interface $INTERFACE: interface lo did not appear!"
-    fi
+    wait_for_interface lo
 
     exec ifup --allow=hotplug $INTERFACE
 }

Attachment: signature.asc
Description: Digital signature



Reply via email to