Changeset 1729 in MondoRescue for branches/2.2.5/mindi/rootfs/sbin/start-usb


Ignore:
Timestamp:
Oct 29, 2007, 3:46:39 AM (12 years ago)
Author:
Bruno Cornec
Message:

Still trying to activate USB correctly at boot time with udev

File:
1 edited

Legend:

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

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