Ticket #589: rcs.patch

File rcs.patch, 2.0 KB (added by Manuel Carreira Silva, 12 years ago)
  • mindi-2.1.1/rootfs/etc/init.d/rcS

    old new  
    149149    tapedev="" ; # will be set by UntarTapeStuff()
    150150
    151151    # Here we can add the USB storage module, it's working even with OBDR !
    152     modprobe -q usb-storage
     152    modprobe -q usb-storage 2>/dev/null
    153153    # Tape takes some time to appear
    154154    sleep 10
    155155    cd $GROOVY
     
    197197        return
    198198    fi
    199199    echo "Activating a potential USB Storage device"
    200     modprobe -q usb-storage
     200    modprobe -q usb-storage 2>/dev/null
    201201    for i in 1 2 3 4 5 6 7 8 9 10 ; do
    202202        sleep 1
    203203        echo -en "."
     
    389389if [ $? -eq 0 ]; then
    390390    return
    391391fi
    392 modprobe -q uhcd_hci
    393 modprobe -q usbhid
     392modprobe -q uhcd_hci 2>/dev/null
     393modprobe -q usbhid 2>/dev/null
    394394}
    395395
    396396
     
    402402    if [ -e "/tmp/i-want-my-lvm" ] ; then
    403403        LogIt "Scanning LVM's..." 1
    404404        if which lvm ; then
    405             modprobe -q dm-mod
    406             modprobe -q dm_mod
     405            modprobe -q dm-mod 2>/dev/null
     406            modprobe -q dm_mod 2>/dev/null
    407407            lvm vgscan --mknodes
    408408        else
    409409            vgscan
     
    686686        echo "$FORCE_MODS" | grep -q "$j "
    687687        if [ $? -eq 0 ]; then
    688688            echo "Forcing first $j..."
    689             modprobe -q $j
     689            modprobe -q $j 2>/dev/null
    690690        fi
    691691    done
    692692    for m in $lismod; do
     
    702702            continue
    703703        fi
    704704        echo "Probing $j..."
    705         modprobe -q $j
     705        modprobe -q $j 2>/dev/null
    706706    done
    707707}
    708708
     
    711711if [ -x /sbin/udevadm ]; then
    712712    v=`/sbin/udevadm --version`
    713713    echo "Triggering udev again..."
    714     if [ "$v" -ge "146" ]; then
     714    if [ "$v" -ge "146" -a "$v" -lt "174" ]; then
    715715        /sbin/udevadm trigger --type=failed
    716     else
     716    elif [ "$v" -lt "146" ]; then
    717717        /sbin/udevadm trigger --retry-failed
     718    else
     719        echo "Triggering not needed!"
    718720    fi
    719721fi
    720722}
     
    741743MINDI_VER=2.1.1
    742744MINDI_REV=2957
    743745trap CaughtSoftReset SIGTERM
    744 trap GetShell SIGINTR
     746trap GetShell SIGINT
    745747LOGFILE=/var/log/mondorestore.log
    746748PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/mondo:/usr/games
    747749GROOVY=/tmp/groovy-stuff