Thanks, I have deleted those files.rerwin wrote:Barry,
To remove the residue from my alternative implementation of mode switching, please remove the following files from woof:
- /etc/udev/rules.d/40-usb_modeswitch.rules (an unneeded link)
- /lib/udev/usb_modeswitch.sh (obsolete)
- /usr/sbin/pusbmodeswitch
- /usr/sbin/pusbmodeswitch_adapt
In my testing of wary 5.1.1, I see that it does not check my USB flash drives for being ready. Puppy does not display the "usb-storage" text after "usb", in the "waiting for modules" line during bootup. When I substitute for:the statement:Code: Select all
if [ "`cat /tmp/pup_event_backend/pup_event_module_devpath_log* | grep 'usb_storage'`" != "" ];then #see pup_event_backend_modprobe
The text always appears, implying that the check was made for the the USB devices being ready. This seems a more direct way of determining whether to check for the readiness of USB storage devices.Code: Select all
if [ "`cat /sys/bus/usb/devices/*/modalias | grep -m 1 'ic08'`" != "" ];then #110225 usb-storage modalias interface fields are ic08isc06ip50, if needed.
Thanks.
Richard
The test for usb_storage seems ok to me as it is. For most PUPMODEs, usb-storage.ko has been loaded in the initrd and the wait for scan already done. Hence you will not get the "usb-storage" message at bootup.
However, in the case of a full hd installation, no initrd, then when pup_event_backend_modprobe loads usb-storage.ko it also logs that to file, then that test in rc.sysinit will test as true and the wait for scan complete will occur.