#!/bin/sh

for module in usb-uhci usb-ohci ehci-hcd uhci-hcd ohci-hcd usb-storage scsi_mod sd_mod
do
	modprobe $module &>/dev/null
done

if [ "`lsmod | grep usbcore`" ]
then
	echo "USB subsystem found, loading keyboard and mouse drivers"
	for module in keybdev mousedev input usbmouse usbkbd
	do
		modprobe $module > /dev/null
	done
	# quick bug-fix hack
	insmod usbmouse
else
	echo "WARNING: USB subsystem not found, skipping"
fi
