Re: Load hid.o module synchronously?

Chris Friesen
2004-04-26T19:42:32Z

Patrick J. LoPresti wrote:

> For example, I invoke "modprobe hid" to make my USB keyboard work.
> This loads the module and exits immediately, causing my script to
> proceed, before the USB keyboard is probed and ready.
>
> I want to wait until the driver is finished initializing (i.e., a USB
> keyboard is either found or not found) before my script continues.
> How can I do that?

How about scanning the usb device tree to see if the keyboard is present and properly detected?

Chris