am Mittwoch, 4. Februar 2004 16:57 schrieb Malte Sch�nemann:
> 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>
I'm using SuSE 8.2 and had the same problem
> 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 ?
I modified /etc/hotplug/usb.agent from
-----------------begin-----------------------------------------------------------------------
if [ "$HOTPLUG_START_USB" != "yes" ]; then
mesg Setting up USB devices switched of. Exiting usb.agent ...
exit 0
fi
-------------------end---------------------------------------------------------------------
to
-----------------begin-----------------------------------------------------------------------
if [ "$HOTPLUG_START_USB" != "yes" ]; then
/usr/local/sbin/usb
exit 0
fi
-------------------end---------------------------------------------------------------------
You can see my /usr/local/sbin/usb at
http://www.troszynski.de/pub/usr_local_sbin_usb
The script mounts the configured devices always at the same mountpoint. You
have to configure this script. You will find the informations you need by
plug in your device and run 'hwinfo --usb --short'.
> Also: how can I make the appropriate modules to load automatically (e.g.
> printer when connecting a printer and usb-storage for my burners) ?
I thougt they load automatically?
If you have problems or suggestions: please tell me
--
Gru�
Bernd
PGP Key: 1024/90F8BC35
FP: 9C 1F D1 8B BD D0 FA 62 BA D6 C7 C8 89 7D 5F E8
-------------------------------------------------------
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