From mboxrd@z Thu Jan 1 00:00:00 1970 From: md@Linux.IT (Marco d'Itri) Date: Fri, 03 Mar 2006 21:01:31 +0000 Subject: Re: How to check if driver is in-built or module? Message-Id: <20060303210131.GA13403@wonderland.linux.it> 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 On Mar 03, juuso.alasuutari@tamperelainen.org wrote: > 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 # check if the device has already been claimed by a driver ENV{PHYSDEVDRIVER}="?*", GOTO="hotplug_driver_loaded" ENV{MODALIAS}="?*", RUN+="/sbin/modprobe $env{MODALIAS}" LABEL="hotplug_driver_loaded" Look at the Debian rules files for details. > 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. I doubt that this buys you much anyway. -- ciao, Marco ------------------------------------------------------- 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