All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] new interface is already up but udev must call ifup anyway
@ 2009-03-06 20:57 Stanislav Brabec
  2009-03-06 22:31 ` Nicola Mfb
  0 siblings, 1 reply; 6+ messages in thread
From: Stanislav Brabec @ 2009-03-06 20:57 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Matthias Hentges

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@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




^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-20 12:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-06 20:57 [PATCH] new interface is already up but udev must call ifup anyway Stanislav Brabec
2009-03-06 22:31 ` Nicola Mfb
2009-04-20  9:33   ` Stanislav Brabec
2009-04-20  9:54     ` Koen Kooi
2009-04-20 11:33       ` Stanislav Brabec
2009-04-20 12:17         ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.