Changeset 1729 for branches/2.2.5


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

Still trying to activate USB correctly at boot time with udev

Location:
branches/2.2.5/mindi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/mindi

    r1728 r1729  
    28642864                i=`echo $i | sed 's/.gz//'`
    28652865        fi
    2866         (cd $mountpoint ; ln -s $i . 2>/dev/null) || LogIt "Unable to link `basename $i` to $mountpoint"
     2866        (cd $mountpoint ; ln -s $i . 2>/dev/null)
    28672867        [ "`echo "$i" | grep -F ".gz"`" ] && gunzip -f $mountpoint/`basename $i`
    28682868    done
  • branches/2.2.5/mindi/rootfs/sbin/init

    r1720 r1729  
    496496fi
    497497
     498if [ -f /proc/modules ]; then
     499    echo "/sbin/modprobe" > /proc/sys/kernel/modprobe
     500fi
     501
    498502if [ -e "/tmp/USE-UDEV" ] ; then
    499503    RunUdevd
  • branches/2.2.5/mindi/rootfs/sbin/start-nfs

    r1311 r1729  
    4949if [ $? -eq 0 ]; then
    5050    ipdev=`echo $ipconf | cut -d: -f1`
    51     echo "Making DHCP request on $ipdev"
     51    LogIt "Making DHCP request on $ipdev"
    5252    udhcpc -i $ipdev
    5353else
     
    5959        ipgateway=`echo $ipconf | cut -d: -f5`
    6060    fi
    61     echo "Configuring $ipdev statically ($ipaddress/$ipnetmask)"
     61    LogIt "Configuring $ipdev statically ($ipaddress/$ipnetmask)"
    6262    ifconfig $ipdev $ipaddress netmask $ipnetmask broadcast $ipbroadcast
    6363    route add default gw $ipgateway
  • 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.