On Jun 03, Adeodato Simó <[EMAIL PROTECTED]> wrote: > Marco, how should init scripts that load modules and use the device > afterwards behave?, is there a common policy? My best guess is the > following, but I'd like confirmation: The correct solution would be to use RUN rules. Next best, udevsettle will work (but will obviously wait for *all* pending events, which may or may not be a problem). But if you already know the expected device name then waiting for it in a loop for a few seconds would work as well.
BTW, the race-free way to use udevsettle is: mkdir -p /dev/.udev/queue/ modprobe ... if ! udevsettle; then echo timeout fi -- ciao, Marco
signature.asc
Description: Digital signature