[PATCH] sleep for 2 seconds to give the kernel a chance to actually create the files we need.
This commit is contained in:
parent
f0952f66e6
commit
af815f882d
5
udev.c
5
udev.c
|
@ -262,6 +262,11 @@ int main(int argc, char *argv[])
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* sleep for a second or two to give the kernel a chance to
|
||||||
|
* create the dev file
|
||||||
|
*/
|
||||||
|
sleep(2);
|
||||||
|
|
||||||
/* for now, the block layer is the only place where block devices are */
|
/* for now, the block layer is the only place where block devices are */
|
||||||
subsystem = argv[1];
|
subsystem = argv[1];
|
||||||
if (strcmp(subsystem, "block") == 0)
|
if (strcmp(subsystem, "block") == 0)
|
||||||
|
|
Loading…
Reference in New Issue