From: juuso.alasuutari@tamperelainen.org Date: Fri, 03 Mar 2006 20:35:50 +0000 Subject: How to check if driver is in-built or module? Message-Id: <1141418150.4408a8a625721@cs1.alpha12.l-secure.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hello. This is my first post on this list, and I hope I'm not asking something that's already been dealt with. (I searched the docs and this list before posting.) How can I tell udev to modprobe only if exists and hasn't been compiled in the kernel? In my experience modules are visible to udev only when and after they are loaded, which makes finding a solution to my problem a bit of a paradox. I need this feature for those modules that aren't autoloaded, such as rtc. The idea would not be to modprobe all modules that exist, but to add conditional that would run modprobe only if necessary. The rule I use for autoloading is: SYSFS{modalias}="?*", ACTION="add", RUN+="/sbin/modprobe $env{MODALIAS} Thank you. Sincerelly, Juuso Alasuutari ---------------------------------------------------------------- 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