aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-05-31 18:31:01 +0000
committerJudd Vinet <judd@archlinux.org>2005-05-31 18:31:01 +0000
commitb5d692b639b9e4a47cd6ba920b91a6d2ff50dc3d (patch)
treefe9f35a815f3e873c73f834c607db2809ba160e8 /rc.sysinit
parentcc6648d06dba085b903db820ad581dd94eb669ef (diff)
downloadinitscripts-b5d692b639b9e4a47cd6ba920b91a6d2ff50dc3d.tar.xz
moved usb setup above the Loading Modules stage, so sane and other usb things will work correctly (#2770)
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit7
1 files 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