From c317c6e37648aa5eaaed6f82c462f3a08ff752aa Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 27 Jun 2002 18:50:17 +0000 Subject: move /proc/bus/usb mount elsewhere, in case USB is in the initrd --- rc.d/rc.sysinit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"` -- cgit v1.2.1