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


Ignore:
Timestamp:
Nov 19, 2007, 1:13:50 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • Increase BOOT_SIZE and EXTRA_SIZE to support features such as HW recovery
  • Handles udev.files files which could be symlinks
  • Improve udev support for distro with compressed modules (mdv e.g.)
  • Fix modules.dep copy
  • /sbin/pam_console_apply is needed by mdv udev conf
  • Adds support for nohw boot option to avoid re-setuping the HW conf
File:
1 edited

Legend:

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

    r1813 r1815  
    196196#   Load the VIA IDE module first thing if it exists (requires ide-core).
    197197#   This is to ensure that DMA is working for VIA chipsets with 2.6 kernels.
    198     for module in /ide-core.ko /via82cxxx.ko; do
     198    for module in /ide-core.ko* /via82cxxx.ko*; do
    199199        [ -f "$module" ] && MyInsmod $module > /dev/null 2> /dev/null
    200200    done
     
    315315    answer="NO"
    316316
     317    grep -q nohw /proc/cmdline
     318    if [ "$?" -eq 0 ]; then
     319        return
     320    fi
    317321    if [ -x ./mindi-rsthw ]; then
    318322        grep -q RESTORE /proc/cmdline
    319323        if [ "$?" -ne 0 ]; then
    320             clear
     324            #clear
    321325            echo "*********************************************************************"
    322326            echo "Do you want to restore the HW configuration of the original machine ?"
     
    362366[ -d /proc/bus/usb ] && ! grep -q /proc/bus/usb /proc/mounts && mount -t usbfs none /proc/bus/usb
    363367if [ -e "/tmp/USE-UDEV" ] ; then
    364     if [ -f usbhid.ko ]; then
     368    if [ -f usbhid.ko || -f usbhid.ko.gz ]; then
    365369        modprobe -q usbhid
    366370    fi
    367     if [ -f uhcd_hci.ko ]; then
     371    if [ -f uhcd_hci.ko || -f uhcd_hci.ko.gz ]; then
    368372        modprobe -q uhcd_hci
    369373    fi
    370374else
    371375    if [ -f uhcd_hci.ko ]; then
    372         insmod uhcd_hci.ko
     376        insmod uhcd_hci.ko*
    373377    fi
    374378    if [ -f usbhid.ko ]; then
    375         insmod usbcore.ko
    376         insmod usbhid.ko
     379        insmod usbcore.ko*
     380        insmod usbhid.ko*
    377381    fi
    378382fi
     
    538542ModprobeAllModules() {
    539543
    540     for m in *.ko; do
    541         j=`echo $m | sed 's/\.ko$//'`
    542         if [ -e $j ]; then
    543             modprobe -q $j
    544         fi
     544    for m in *.ko*; do
     545        j=`echo $m | sed 's/\.ko.*$//'`
     546        modprobe -q $j
    545547    done
    546548}
Note: See TracChangeset for help on using the changeset viewer.