Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261695AbTISTMf (ORCPT ); Fri, 19 Sep 2003 15:12:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261697AbTISTMf (ORCPT ); Fri, 19 Sep 2003 15:12:35 -0400 Received: from mail.kroah.org ([65.200.24.183]:55746 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S261695AbTISTMd (ORCPT ); Fri, 19 Sep 2003 15:12:33 -0400 Date: Fri, 19 Sep 2003 12:12:52 -0700 From: Greg KH To: Stephen Hemminger Cc: Thomas Molina , linux-kernel@vger.kernel.org Subject: Re: 2.6.0-test problems loading network drivers Message-ID: <20030919191252.GK6624@kroah.com> References: <20030919091204.3a5e1c0c.shemminger@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030919091204.3a5e1c0c.shemminger@osdl.org> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1804 Lines: 42 On Fri, Sep 19, 2003 at 09:12:04AM -0700, Stephen Hemminger wrote: > > > > > Sep 15 22:02:58 localhost cardmgr[1482]: socket 0: Intersil PRISM2 11 Mbps Wireless Adapter > > Sep 15 22:02:58 localhost kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean. > > Sep 15 22:02:58 localhost cardmgr[1482]: executing: 'modprobe hermes' > > Sep 15 22:02:58 localhost cardmgr[1482]: executing: 'modprobe orinoco' > > Sep 15 22:02:58 localhost cardmgr[1482]: executing: 'modprobe orinoco_cs' > > Sep 15 22:02:58 localhost cardmgr[1482]: executing: './network start eth0' > > Sep 15 22:02:58 localhost /etc/hotplug/net.agent: NET add event not supported > > Sep 15 22:03:45 localhost login(pam_unix)[1783]: session closed for user root > > Sep 15 22:03:50 localhost login(pam_unix)[1894]: session opened for user tmolina by (uid=0) > > network hotplug changed slightly in 2.6 so the kernel passes: 'add' instead of 'register' > to the scripts. This is because network devices are kobjects and go through the generic > hotplug path. > > The fix is: > --- /etc/hotplug/net.agent.old 2003-09-19 09:10:06.390819425 -0700 > +++ /etc/hotplug/net.agent 2003-09-19 09:10:34.545620648 -0700 > @@ -26,7 +26,7 @@ > fi > > case $ACTION in > -register) > +add|register) > # Don't do anything if the network is stopped > if [ ! -f /var/lock/subsys/network ]; then > exit 0 This fix is in the last released version of the hotplug package if people just want to use that instead of patching their scripts (it also has some other 2.6 fixes in it.) thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/