[Pkg-lirc-maint] Bug#362217: udev: init.d/lirc checks /dev/lirc0 before udev allocates it

Marco d'Itri md at Linux.IT
Sat Jun 3 10:20:40 UTC 2006


On Jun 03, Adeodato Simó <dato at net.com.org.es> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-lirc-maint/attachments/20060603/f85901bd/attachment.pgp


More information about the Pkg-lirc-maint mailing list