Changeset 1826 in MondoRescue for branches/2.2.5/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Dec 1, 2007, 6:19:28 PM (16 years ago)
Author:
Bruno Cornec
Message:

Wait more around the USB CD emulated by iLO as it takes up to 5 seconds to come up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/rootfs/sbin/init

    r1825 r1826  
    157157HandleCDROMorFloppies() {
    158158    # Just in case we have an iLO ensure we will map it correctly
     159    echo "Activating a potential USB Storage device"
    159160    if [ -e "/tmp/USE-UDEV" ] ; then
    160161        if [ -f usb-storage.ko ] || [ -f usb-storage.ko.gz ]; then
     
    166167        fi
    167168    fi
     169    for i in 1 2 3 4 5 6 7 8 9 10 ; do
     170        sleep 1
     171        echo -en "."
     172    done
    168173
    169174    find-and-mount-cdrom
     
    387392[ -d /proc/bus/usb ] && ! grep -q /proc/bus/usb /proc/mounts && mount -t usbfs none /proc/bus/usb
    388393if [ -e "/tmp/USE-UDEV" ] ; then
     394    if [ -f uhcd_hci.ko ] || [ -f uhcd_hci.ko.gz ]; then
     395        modprobe -q uhcd_hci
     396    fi
    389397    if [ -f usbhid.ko ] || [ -f usbhid.ko.gz ]; then
    390398        modprobe -q usbhid
    391     fi
    392     if [ -f uhcd_hci.ko ] || [ -f uhcd_hci.ko.gz ]; then
    393         modprobe -q uhcd_hci
    394399    fi
    395400else
     
    610615rm -f /foozero
    611616
     617echo "Activating a potential USB keyboard/mouse"
    612618StartUSBKbd
    613619
Note: See TracChangeset for help on using the changeset viewer.