>>> When I connect a usb device, dmseg tells me which special file the device
>>> is attached on.
>>> This is sda1 or something like : /dev/scsi/host1/bus0/target0/lun0
>>> I would like to catch this information in a script.
>>> Can anybody tell me how can i do ?
>>> I think this is a kernel information; how can I get it ?
>> http://linux-hotplug.sourceforge.net/
> No hotplug only loads modules and executes particular scripts.
> I want catch the device name (like sda1 or sdb1) of the connected device. I
> think this information comes from the kernel but how to get it ?
You can have hotplug run any script you like. Read the hotplug
documentation/scripts to see how the device name is passed.
--
M?ns Rullg?rd