# ---------------------------------------------------------------------------- # /etc/boot.d/rc005 - loading low-level USB Drivers # # Last Update: $Id$ # ---------------------------------------------------------------------------- begin_script USB "loading USB core drivers ..." case $USB_LOWLEVEL in *ehci*) do_modprobe ehci_hcd ;; esac for driver in $USB_LOWLEVEL; do case $driver in ehci) ;; *) do_modprobe ${driver}_hcd ;; esac done mount -t usbfs usbfs /proc/bus/usb if [ -f /proc/bus/usb/devices ]; then log_info "Waiting for USB-Bus to settle up." num=-1 for i in `seq 1 20`; do oldnum=$num num=`grep -c '^T:' /proc/bus/usb/devices` [ $num -eq $oldnum ] && break sleep 1 done else log_warn "No USB devices found" fi end_script USB