[PATCH] sleep for 2 seconds to give the kernel a chance to actually create the files we need.

This commit is contained in:
greg@kroah.com
2005-04-26 21:01:38 -07:00
committed by Greg KH
parent f0952f66e6
commit af815f882d
+5
View File
@@ -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)