Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > bd83eed6316a8b1c5c9b7e319c5581d0 > files > 14

mkinitrd-6.0.63-1mnb2.src.rpm

diff -p -up mkinitrd-6.0.52/mkinitrd.usb_builtin mkinitrd-6.0.52/mkinitrd
--- mkinitrd-6.0.52/mkinitrd.usb_builtin	2008-08-01 19:09:54.000000000 +0200
+++ mkinitrd-6.0.52/mkinitrd	2008-08-01 19:14:52.000000000 +0200
@@ -1878,6 +1878,12 @@ if [ "$scsi_wait_scan" == "yes" ]; then
     emit "rmmod scsi_wait_scan"
 fi
 
+if echo $builtins | egrep -q '(^| )usb[_-]storage( |$)' ; then
+    emit "mount -t usbfs /proc/bus/usb /proc/bus/usb"
+    emit "echo Waiting for driver initialization."
+    emit "stabilized /proc/bus/usb/devices"
+fi
+
 # HACK: module loading + device creation isn't necessarily synchronous...
 # this will make sure that we have all of our devices before trying
 # things like RAID or LVM