From mboxrd@z Thu Jan 1 00:00:00 1970 From: juuso.alasuutari@tamperelainen.org Date: Sat, 04 Mar 2006 12:07:03 +0000 Subject: Re: How to check if driver is in-built or module? Message-Id: <1141474023.440982e710331@cs1.alpha12.l-secure.net> List-Id: References: <1141418150.4408a8a625721@cs1.alpha12.l-secure.net> In-Reply-To: <1141418150.4408a8a625721@cs1.alpha12.l-secure.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Quoting Greg KH : > > # Load ALSA OSS emulation sound module if not already loaded. > > KERNEL!="snd_pcm_oss", SUBSYSTEM!="module", ACTION="add", > RUN+="/sbin/modprobe > > snd_pcm_oss" > > > > # Load real time clock module if not already loaded. > > KERNEL!="rtc", SUBSYSTEM!="module", RUN+="/sbin/modprobe rtc" > > No, this kind of thing belongs in your distro's "load these modules at > boot time" list. Everyone has this, it's just in different locations > (/etc/sysconfig/modules in SuSE, /etc/modules.autoload/kernel-2.6/ for > Gentoo, etc.) > > Don't mess with udev rules for things like this, it's just not worth it. > Use the infrastructure that is already present and solves this today. > > thanks, > > greg k-h > OK. I'm using Source Mage, and there indeed exists a file /etc/modules. The reason I wanted a udev rule for rtc (among many) is because the udev autoload rule isn't doing everything that hotplug was. rtc is one example of modules that were loaded by hotplug before but not by udev now. Same goes for the irda modules. Obviously I didn't have entries for them in /etc/modules back then, so I am hoping to figure out why they aren't loading and if there's anything I can do about that with udev. Any thoughts on this? Sincerelly, Juuso PS: As I really enjoy messing with udev stuff and also contribute to Source Mage's development, I would like to know if there are any dangers in loading these modules with udev. If so, I'll just use the approach pointed out to me. But if it's possible to use udev, why not edit Source Mage's own udev rules to load those modules that are all-around useful, and leave it to the user to put others in /etc/modules? (I have to admit that right now I don't have a clear image of which modules really are "all-around useful", so I'm just assuming that all modules which were loaded by hotplug are such, rtc being one example.) ---------------------------------------------------------------- This mail sent through L-secure: http://www.l-secure.net/ ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel