Re: [gentoo-user] prevent udev from loading a kernel module
On 6/12/06, Bo Ørsted Andresen <[EMAIL PROTECTED]> wrote: On Monday 12 June 2006 19:21, Neil Bothwick wrote: > Before doing this, try listing the module in /etc/hotplug/blacklist, this > is supposed to prevent its automatic loading. $ grep ipw /etc/hotplug/blacklist # Don't hotplug ipw2100 ipw2100 $ ls -l /etc/hotplug/blacklist -rw-r--r-- 1 root root 829 2006-06-07 11:48 /etc/hotplug/blacklist So I did that 5 days ago. Didn't work. :) Yep, that only works for when udev runs /sbin/udev_run_hotplugd. The current 090 udev appears to do two things for a pci 'hotplug' event: 1. /sbin/modprobe pci:v... 2. /sbin/udev_run_hotplugd pci My alias tricks above take care of #1, but you still need blacklist to take care of #2. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] prevent udev from loading a kernel module
On Monday 12 June 2006 19:21, Neil Bothwick wrote: > Before doing this, try listing the module in /etc/hotplug/blacklist, this > is supposed to prevent its automatic loading. $ grep ipw /etc/hotplug/blacklist # Don't hotplug ipw2100 ipw2100 $ ls -l /etc/hotplug/blacklist -rw-r--r-- 1 root root 829 2006-06-07 11:48 /etc/hotplug/blacklist So I did that 5 days ago. Didn't work. :) -- Bo Andresen pgph4a6ojJkPC.pgp Description: PGP signature
Re: [gentoo-user] prevent udev from loading a kernel module
On Mon, 12 Jun 2006 09:23:28 -0700, Richard Fish wrote: > Ok, here is the 'correct' way to do it (I was too lazy to figure it > out until now...) Before doing this, try listing the module in /etc/hotplug/blacklist, this is supposed to prevent its automatic loading. -- Neil Bothwick Don't let the computer bugs bite! signature.asc Description: PGP signature
Re: [gentoo-user] prevent udev from loading a kernel module
On Monday 12 June 2006 18:23, Richard Fish wrote: > Ok, here is the 'correct' way to do it (I was too lazy to figure it > out until now...) Excellent. It does work. Thank you very much. :) -- Bo Andresen pgphrhqub3GVo.pgp Description: PGP signature
Re: [gentoo-user] prevent udev from loading a kernel module
On 6/12/06, Bo Ørsted Andresen <[EMAIL PROTECTED]> wrote: On Monday 12 June 2006 11:46, Richard Fish wrote: > The most reliable method I have found is to remove the ipw lines > from /lib/modules/`uname -r`/modules.alias and modules.pcimap. Surely they must have plans to make this possible in a config file? Anyway it works. Thx. Ok, here is the 'correct' way to do it (I was too lazy to figure it out until now...) In /lib/modules/`uname -r`/modules.alias, you will find lines for the ipw adapter liike this (run depmod -a to regenerate this file after following my previous advice) alias pci:v8086d4222sv*sd*bc*sc*i* ipw3945 alias pci:v8086d4227sv*sd*bc*sc*i* ipw3945 Add those same lines to a file in /etc/modules.d/. I used ipw3945, you will probably want ipw2100: grep ipw /lib/modules/`uname -r`/modules.alias >>/etc/modules.d/ipw3945 Now edit the /etc/modules.d/ file and change the last setting from ipw3945/ipw2100 to 'off': carcharias rjf # grep alias /etc/modules.d/ipw3945 alias pci:v8086d4222sv*sd*bc*sc*i* off alias pci:v8086d4227sv*sd*bc*sc*i* off Now run modules-update, and udev should no longer load the module for the ipw adapater. HTH, -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] prevent udev from loading a kernel module
On Monday 12 June 2006 11:46, Richard Fish wrote: > The most reliable method I have found is to remove the ipw lines > from /lib/modules/`uname -r`/modules.alias and modules.pcimap. Surely they must have plans to make this possible in a config file? Anyway it works. Thx. -- Bo Andresen pgpjf45YgVLnB.pgp Description: PGP signature
Re: [gentoo-user] prevent udev from loading a kernel module
On 6/12/06, Bo Ørsted Andresen <[EMAIL PROTECTED]> wrote: I haven't been able to figure out how to prevent that the new udev (090) loads the ipw2100 (wireless lan) during boot. I don't use it very often, and I have set the button that enables/disables the transmitter to also load/unload the kernel module. Any hints or pointers appreciated? The most reliable method I have found is to remove the ipw lines from /lib/modules/`uname -r`/modules.alias and modules.pcimap. -Richard -- gentoo-user@gentoo.org mailing list
[gentoo-user] prevent udev from loading a kernel module
I haven't been able to figure out how to prevent that the new udev (090) loads the ipw2100 (wireless lan) during boot. I don't use it very often, and I have set the button that enables/disables the transmitter to also load/unload the kernel module. Any hints or pointers appreciated? -- Bo Andresen pgp9g7MleJZUI.pgp Description: PGP signature