From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott James Remnant Date: Sat, 04 Mar 2006 00:12:11 +0000 Subject: Re: How to check if driver is in-built or module? Message-Id: <1141431131.8309.5.camel@syndicate.netsplit.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-DqPeoQDXqnwyiLmApnY6" List-Id: References: <1141418150.4408a8a625721@cs1.alpha12.l-secure.net> In-Reply-To: <1141418150.4408a8a625721@cs1.alpha12.l-secure.net> To: linux-hotplug@vger.kernel.org --=-DqPeoQDXqnwyiLmApnY6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-03-03 at 22:01 +0100, Marco d'Itri wrote: > On Mar 03, juuso.alasuutari@tamperelainen.org wrote: >=20 > > How can I tell udev to modprobe only if exists and ha= sn't been > > compiled in the kernel? In my experience modules are visible to udev on= ly when >=20 > # check if the device has already been claimed by a driver > ENV{PHYSDEVDRIVER}=3D=3D"?*", GOTO=3D"hotplug_driver_loaded" >=20 > ENV{MODALIAS}=3D=3D"?*", RUN+=3D"/sbin/modprobe $env{MODALIAS}" >=20 > LABEL=3D"hotplug_driver_loaded" >=20 This breaks drivers like joydev which augment an existing loaded driver. PHYSDEVDRIVER contains usbhid, so you never load joydev (which is expanded by the MODALIAS). Scott --=20 Scott James Remnant scott@ubuntu.com --=-DqPeoQDXqnwyiLmApnY6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (GNU/Linux) iD8DBQBECNtbSnQiFMl4yK4RAnG0AKCTOIaNkUqQFRlcajXIhrYdlpzCAQCfdg5n Hjb957jMOspd26BpFe0E2vk= =0EEr -----END PGP SIGNATURE----- --=-DqPeoQDXqnwyiLmApnY6-- ------------------------------------------------------- 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=110944&bid=241720&dat=121642 _______________________________________________ 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