aboutsummaryrefslogtreecommitdiffstats
path: root/udev.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/udev.c b/udev.c
index 5aa9b43d..de6b6565 100644
--- a/udev.c
+++ b/udev.c
@@ -262,6 +262,11 @@ int main(int argc, char *argv[])
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 */
subsystem = argv[1];
if (strcmp(subsystem, "block") == 0)