aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-06-27 18:50:17 +0000
committerBill Nottingham <notting@redhat.com>2002-06-27 18:50:17 +0000
commitc317c6e37648aa5eaaed6f82c462f3a08ff752aa (patch)
tree9d3042404d51ddcb7be6692cbbba6f4e52aac228 /rc.d
parent96a8374a35cae5e4f25f306637e0e80ce2d3019f (diff)
downloadinitscripts-c317c6e37648aa5eaaed6f82c462f3a08ff752aa.tar
initscripts-c317c6e37648aa5eaaed6f82c462f3a08ff752aa.tar.gz
initscripts-c317c6e37648aa5eaaed6f82c462f3a08ff752aa.tar.bz2
initscripts-c317c6e37648aa5eaaed6f82c462f3a08ff752aa.tar.xz
initscripts-c317c6e37648aa5eaaed6f82c462f3a08ff752aa.zip
move /proc/bus/usb mount elsewhere, in case USB is in the initrd
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit5
1 files changed, 4 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index fe1148ef..04a538e0 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -163,7 +163,6 @@ if ! grep -iq "nousb" /proc/cmdline 2>/dev/null && ! grep -q "usb" /proc/devices
aliases=`/sbin/modprobe -c | awk '/^alias usb-controller/ { print $3 }'`
if [ -n "$aliases" -a "$aliases" != "off" ] ; then
modprobe usbcore
- action $"Mounting USB filesystem: " mount -t usbdevfs usbdevfs /proc/bus/usb
for alias in $aliases ; do
[ "$alias" != "off" ] && action $"Initializing USB controller ($alias): " modprobe $alias
done
@@ -175,6 +174,10 @@ if ! grep -iq "nousb" /proc/cmdline 2>/dev/null && grep -q "usb" /proc/devices 2
usb=1
fi
+if [ $usb = 1 -a ! -f /proc/bus/usb/devices ]; then
+ action $"Mounting USB filesystem: " mount -t usbdevfs usbdevfs /proc/bus/usb
+fi
+
needusbstorage=
if [ $usb = "1" ]; then
needusbstorage=`cat /proc/bus/usb/devices 2>/dev/null|grep -e "^I.*Cls=08"`