Scenario:
TCL 4.7 launches using an onboard DOC/DOM or other similar flash drive using IDE or SATA interfaces. This will be a small flash device (64MB and 128MB expected)
There will be two USB 2.0 ports, one of which is intended to take a USB based flash reader (ie: Micro/SD, USB to IDE/SATA or similar)
The USB device will not have a known UUID or LABEL we can rely on (for waitusb=#:ID=Something)
firmware (3.0.21) is installed
What I need to do is monitor the system for when usb_storage devices are detected (prior to tc-config's functionality kicking in) but I don't know the kernel modules well enough to determine which mod gets loaded for USB mass-storage in order to start a timeout loop.
The anticipated logic is:
1) Scan IDs (blkid) for all detected storage devices
2) Wait for kernel/drivers/something to load by pinging modprobe
3) Determine the boot drive (and remove it from the list in #1 above)
4) Once loaded, start a check loop that uses blkid to see if any new devices were detected.
IF SO, break the loop, otherwise TIMEOUT would break the loop.
If memory serves, lsusb tells a good story regarding a given device, but I don't remember it giving details as to which driver is being used in order to give those details. If anyone knows where usb_storage lives within the TC drivers it would be very helpful!