[oe] [PATCH] new interface is already up but udev must call ifup anyway

Stanislav Brabec utx at penguin.cz
Fri Mar 6 20:57:50 UTC 2009


Few weeks ago yet another change happened in the dark, and network did
not start to work automatically after inserting my WLAN card.

Debugging this problem, I found that interface is already up but not
configured when /etc/udev/scripts/network.sh is called. This script
thinks, that card is already configured and quits. This behavior is
intentional and was introduced three years ago (and working).

The fix actually reverts following change:
Author: Matthias Hentges <oe at hentges.net>
Date:   Thu Apr 20 16:01:09 2006 +0000
    udev: network.sh: Do not ifup an already configured network device again.

That is why I am asking:

Is anybody aware of change, that made new interfaces up without
configuring them? Was it an intention or not?

Matthias, do you remember, which problem it addressed?

My card is prism2 based wlan card. Firmware is upgraded into card RAM.

diff --git a/packages/udev/files/network.sh b/packages/udev/files/network.sh
index 182c26d..c97f9f0 100644
--- a/packages/udev/files/network.sh
+++ b/packages/udev/files/network.sh
@@ -47,7 +47,7 @@ fi
 if grep -q "iface \+$INTERFACE" /etc/network/interfaces; then
   case $ACTION in
     add)
-    	ifconfig | grep -q "^$INTERFACE" || ifup $INTERFACE
+    	ifup $INTERFACE
     	;;
     remove)
     	ifdown $INTERFACE


________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus





More information about the Openembedded-devel mailing list