You want to do a hotplug script.  Look under /etc/hotplug for the usb.usermap.  It 
will have a bunch of colums of numbers (be careful of line wrap).  Insert a line at 
the begining with a name of a script or module and the device information (google for 
linux hotplug for details on each colum).  Create a script with that name to do 
whatever you want.  For example I have a Lexar Jumpdrive (128M USB Flash drive).  I 
added a line reading :
jumpdrive    0x0003   0x05dc   0x0080    0x0001  0x0000   ...

This tells the hotplug system when a USB device (0x0003) matching the vendor and 
device ID of 0x05dc 0x0080 to call a script in the /etc/hotplug/usb folder called 
jumpdrive.  The script called jumpdrive contains simple commdands:

mount /dev/sda1 /mnt/jumpdrive
cp /home/enine/.kde/share/apps/kabc/std.vcf /mnt/jumpdrive/backup/backup.vcf

which backs up my address book each time I plug the drive in.

Eugene Nine



---------- Original Message ----------------------------------
From: "Malte Sch�nemann" <[EMAIL PROTECTED]>
Date:  Wed, 4 Feb 2004 16:57:52 +0100

>I am running SuSE9.0 with kernel 2.4.24 (or 2.6.1). After connecting a device 
>(printer, CD/DVD burner) to my USB2.0 port I would like to perform additional actions 
>afterwards - e.g. create soft links
>  /dev/dvd -> /dev/sr<n>
>
>depending on informations in /proc/sys/dev/cdrom/info . It is not always the same 
>sr<n> the burner is attached to - also I have different burners / ROM devices and I 
>would like to create specific link names depending on info retrieved by scsi_info.
>
>Is there a specific location where I can let the system start activities after 
>connection of my devices ?
>
>Also: how can I make the appropriate modules to load automatically (e.g. printer when 
>connecting a printer and usb-storage for my burners) ?
>
>Thank you, Malte
>______________________________________________________________________________
>Nachrichten, Musik und Spiele schnell und einfach per Quickstart im
>WEB.DE Screensaver - Gratis downloaden: http://screensaver.web.de/?mc=021110
>
>
>
>-------------------------------------------------------
>The SF.Net email is sponsored by EclipseCon 2004
>Premiere Conference on Open Tools Development and Integration
>See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
>http://www.eclipsecon.org/osdn
>_______________________________________________
>[EMAIL PROTECTED]
>To unsubscribe, use the last form field at:
>https://lists.sourceforge.net/lists/listinfo/linux-usb-users
>



________________________________________________________________
Sent via the HostPortal WebMail system at ninefamily.com







-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to