Changeset 1787 for branches/2.2.5


Ignore:
Timestamp:
Nov 12, 2007, 5:30:46 PM (12 years ago)
Author:
bruno
Message:

Load USB earlier in order to support KBD such as with iLO

Location:
branches/2.2.5/mindi/rootfs/sbin
Files:
2 edited

Legend:

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

    r1780 r1787  
    337337    fi
    338338    rm -f /tmp/FLF
     339}
     340
     341StartUSBKbd() {
     342# Prepare minimal USB env in case we have USB kbd such as with iLO
     343[ -d /proc/bus/usb ] && ! grep -q /proc/bus/usb /proc/mounts && mount -t usbfs none /proc/bus/usb
     344if [ -e "/tmp/USE-UDEV" ] ; then
     345    modprobe usbhid
     346else
     347    if [ -f uhcd_hci.ko ]; then
     348        insmod uhcd_hci.ko
     349    fi
     350    if [ -f usbhid.ko ]; then
     351        insmod usbhid.ko
     352    fi
     353fi
    339354}
    340355
     
    532547rm -f /foozero
    533548
     549StartUSBKbd
     550
    534551if [ -f /proc/sys/kernel/exec-shield ]; then
    535552    echo 0 > /proc/sys/kernel/exec-shield 2>> /dev/null
  • branches/2.2.5/mindi/rootfs/sbin/start-usb

    r1732 r1787  
    2020fi
    2121
    22 [ -d /proc/bus/usb ] && ! grep -q /proc/bus/usb /proc/mounts && mount -t usbfs none /proc/bus/usb
    23 
    2422echo -en "Mounting USB device (${usbdev}1) on /mnt/cdrom..."
    2523/sbin/modprobe usb-storage
Note: See TracChangeset for help on using the changeset viewer.