On Sat, Nov 08, 2003 at 08:03:17PM +0200, Jerome BENOIT wrote:
> Hello List,
> 
> is there a way to configure my laptop
> to assign alway the same SCSI dev to my
> USB disk whatever the order they are pluged ?
> 
> Thanks in advance,
> Jerome BENOIT
> 

I've used the following to handle the various usb memory sticks I have,
I put it in /etc/hotplug/usb/usb-storage, I then have a couple of
entries in /etc/auto.misc to mount the devices on demand (with a 5
second timeout)  It's crude but it works.

HTH,

Simon.



#!/bin/sh
#
# hotplug script to handle usb-storage
#

if [ "$ACTION" = "add" ]
then
        sleep 5
        
        rmmod sd_mod 
        rmmod usb-storage 
        rmmod scsi_mod
        
        sleep 5

        modprobe usb-storage 
        modprobe sd_mod 
        modprobe scsi_mod

fi

if [ "$ACTION" = "remove" ]
then
        rmmod sd_mod 
        rmmod usb-storage 
        rmmod scsi_mod
fi

-simon (E: [EMAIL PROTECTED] T: +44 2890 725060 M: +44 7710 836 915)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to