Re: 2.6.0-test problems loading network drivers

From: Stephen Hemminger
Date: Fri Sep 19 2003 - 11:13:55 EST



>
> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/