Changeset 1732 in MondoRescue


Ignore:
Timestamp:
Oct 29, 2007, 2:16:55 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • Always load usb-torage (even 2.6) to initiate USB bus discovery
  • Better printing of messages
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/rootfs/sbin/start-usb

    r1729 r1732  
    2020fi
    2121
    22 needusbstorage=`LC_ALL=C grep -e "^I.*Cls=08" /proc/bus/usb/devices 2>/dev/null`
    23 unamer=`uname -r`
    24 min=`echo $unamer | cut -d. -f2`
    25 [ -n "$needusbstorage" -a "$min" = "4" ] && /sbin/modprobe usb-storage >/dev/null 2>&1
    26 
    2722[ -d /proc/bus/usb ] && ! grep -q /proc/bus/usb /proc/mounts && mount -t usbfs none /proc/bus/usb
    2823
    29 LogIt "Mounting USB device (${usbdev}1) on /mnt/cdrom..."
    30 sync
    31 sleep 2
    32 ls -l ${usbdev}1
    33 mount -t vfat ${usbdev}1 /mnt/cdrom
     24echo -en "Mounting USB device (${usbdev}1) on /mnt/cdrom..."
    3425/sbin/modprobe usb-storage
    35 sleep 10
    36 ls -l ${usbdev}1
    37 mount -t vfat ${usbdev}1 /mnt/cdrom
     26for i in 1 2 3 4 5 6 7 8 9 10 ; do
     27        sleep 1
     28        echo -en "."
     29done
     30mount -t vfat ${usbdev}1 /mnt/cdrom && LogIt "USB device (${usbdev}1) mounted on /mnt/cdrom"
     31echo "."
Note: See TracChangeset for help on using the changeset viewer.