From b5d692b639b9e4a47cd6ba920b91a6d2ff50dc3d Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Tue, 31 May 2005 18:31:01 +0000 Subject: moved usb setup above the Loading Modules stage, so sane and other usb things will work correctly (#2770) --- rc.sysinit | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index af7e11c..fd288d0 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -151,6 +151,10 @@ if [ "$CONSOLEFONT" != "" ]; then stat_done fi +# Load USB support +/sbin/modprobe usbcore >/dev/null 2>&1 +[ "`grep usbfs /proc/filesystems`" ] && mount -t usbfs none /proc/bus/usb + # Load modules from the MODULES array defined in rc.conf if [ -f /proc/modules ]; then stat_busy "Loading Modules" @@ -162,9 +166,6 @@ if [ -f /proc/modules ]; then stat_done fi -# Now that modules are loaded, try to mount /proc/bus/usb -[ "`grep usbfs /proc/filesystems`" ] && mount -t usbfs none /proc/bus/usb - # Load sysctl variables if sysctl.conf is present [ -r /etc/sysctl.conf ] && /sbin/sysctl -p -- cgit v1.2.3