Changeset 1789


Ignore:
Timestamp:
Nov 12, 2007, 9:11:14 PM (12 years ago)
Author:
bruno
Message:

Udev startup improvement to support iLO + NFS so modprobing all modules seems required as of now

Location:
branches/2.2.5/mindi
Files:
2 edited

Legend:

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

    r1787 r1789  
    278278    mount -n -t devpts -o mode=620 none /dev/pts
    279279    mount -n -t tmpfs  none /dev/shm
     280    if [ -e /proc/sys/kernel/hotplug ]; then
     281        echo > /proc/sys/kernel/hotplug
     282    fi
    280283    PKLVL=`cut -f1 /proc/sys/kernel/printk`
    281284    echo 0 > /proc/sys/kernel/printk
     
    286289    /sbin/udevd --daemon &
    287290    sleep 2
     291    if [ -x /sbin/udevtrigger ]; then
     292        /sbin/udevtrigger
     293    fi
    288294    echo $PKLVL > /proc/sys/kernel/printk
    289295    # May avoid shell error messages
     
    343349[ -d /proc/bus/usb ] && ! grep -q /proc/bus/usb /proc/mounts && mount -t usbfs none /proc/bus/usb
    344350if [ -e "/tmp/USE-UDEV" ] ; then
    345     modprobe usbhid
     351    if [ -f usbhid.ko ]; then
     352        modprobe -q usbhid
     353    fi
     354    if [ -f uhcd_hci.ko ]; then
     355        modprobe -q uhcd_hci
     356    fi
    346357else
    347358    if [ -f uhcd_hci.ko ]; then
     
    349360    fi
    350361    if [ -f usbhid.ko ]; then
     362        insmod usbcore.ko
    351363        insmod usbhid.ko
    352364    fi
     
    564576LaunchTerminals
    565577
     578# Keeping kernel silent  for module insertion
     579PKLVL=`cut -f1 /proc/sys/kernel/printk`
     580echo 0 > /proc/sys/kernel/printk
    566581if [ ! -e "/tmp/USE-UDEV" ] ; then
    567     # Keeping kernel silent  for module insertion
    568     PKLVL=`cut -f1 /proc/sys/kernel/printk`
    569     echo 0 > /proc/sys/kernel/printk
    570582    InsertEssentialModules
    571     echo $PKLVL > /proc/sys/kernel/printk
    572 fi
     583else
     584    for m in *.ko; do
     585        j=`echo $m | sed 's/\.ko$//'`
     586        modprobe -q $j
     587    done
     588fi
     589echo $PKLVL > /proc/sys/kernel/printk
    573590
    574591EnableCcissIfAppropriate
  • branches/2.2.5/mindi/udev.files

    r1759 r1789  
    1212/sbin/udevstart
    1313/sbin/udevcontrol
     14/sbin/udevtrigger
Note: See TracChangeset for help on using the changeset viewer.