Messages in this thread | | | Date | Wed, 30 Jun 2004 21:57:25 -0700 | From | Greg KH <> | Subject | Re: How NOT to have already compiled modules (auto)load? |
| |
On Thu, Jul 01, 2004 at 11:39:16AM +0900, Kalin KOZHUHAROV wrote: > Sorry for the fuzzy subject, I couldn't formulate it better. > > I was trying to find info on that on Google, man and Documentation/*, but > to no avail... > > I have a laptop with USB CD-ROM that is very rarely attached/used. > I have sr_mod, etc. compiled as modules. > On every boot it gets autoloaded, despite the fact that CD-ROM is not > connected (no, I don't have another). > > My question is is there any good(tm) way to prevent this? > One way I could think is to rename the module, but that is a bit bad. > Is there a way to blacklist some modules?
/etc/hotplug/blacklist will prevent the hotplug scripts from loading the module automatically.
Hope this helps,
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/
| |