blob: ef4529b512eea98c2bd7c80176ee98921af08b8b (
plain)
- #!/bin/sh
- # Unload andd then reload USB drivers, to reset to using sda for new stick
- # Try 2.4 and then 2.6 names: uhci/uhci_hcd
- usbchain="usbcore ehci-hcd uhci uhci_hcd ohci_hcd scsi_mod usb_storage sd_mod"
- usbchain_reverse="$(echo $usbchain | tr '[:space:]' '\n' | tac -)"
- for module in $usbchain_reverse; do
- modprobe -q -r $module || true
- done
- for module in $usbchain; do
- modprobe -q $module || true
- done
|