mdev with USB wifi adapters

Laurent Bercot ska-dietlibc at skarnet.org
Mon May 21 11:56:20 UTC 2012


> and presumably one event for each and every partition.  I also assume
> when receiving an event to create /dev/sdb1, I should put a sleep loop
> in the script that gets activated if /dev/sdb doesn't exist yet <G>.

 To avoid this kind of race condition (due to the hotplug interface
spawning helpers in parallel instead of sequentially), you can use
s6-devd along with mdev. s6-devd just listens to the netlink interface
and spawns helpers sequentially.

 http://www.skarnet.org/software/s6-linux-utils/s6-devd.html

-- 
 Laurent


More information about the busybox mailing list