linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to check if driver is in-built or module?
@ 2006-03-03 20:35 juuso.alasuutari
  2006-03-03 21:01 ` Marco d'Itri
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: juuso.alasuutari @ 2006-03-03 20:35 UTC (permalink / raw)
  To: linux-hotplug

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 <module> only if <module> 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&kid\x110944&bid$1720&dat\x121642
_______________________________________________
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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-04-01  1:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-03 20:35 How to check if driver is in-built or module? juuso.alasuutari
2006-03-03 21:01 ` Marco d'Itri
2006-03-04  0:12 ` Scott James Remnant
2006-03-04  0:51 ` Greg KH
2006-03-04  2:49 ` juuso.alasuutari
2006-03-04  5:42 ` Greg KH
2006-03-04 12:07 ` juuso.alasuutari
2006-03-04 12:10 ` Marco d'Itri
2006-03-06 23:45 ` juuso.alasuutari
2006-03-08  9:38 ` Andrey Borzenkov
2006-03-31 20:52 ` juuso.alasuutari
2006-04-01  1:05 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).