Debian Sid with a 2.6.6 kernel. I'm trying to get a script to run when I connect a camera that shows up as a scsi drive.
I have a Palm handheld device, and so I have an entry in /etc/hotplug/usb/local.usermap: $ cat local.usermap jpilot-sync 0x0003 0x0830 0x0001 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 That, I believe, causes the /etc/hotplug/usb/jpilot-sync script to run. That works mostly OK (although I can't figure out how the $REMOVER script is suppose to run to remove the loaded modules). That's about as far as my understanding of hotplug goes. Now, I also have a Sony camera that I access as a scsi device. This is a bit more of a mystery as it "just works" when I plug it in. But, what I want to do is run a script like with the Palm above. But, I have not been able to make this work -- perhaps because the of the wrong local.usermap entries (or just my lack of understanding how the parts fit together!). I tried this entry in local.usermap, but I suspect that's the wrong place (found via the hotplug website -> jphoto): sony-camera 0x380 0 0 0 0 0 0 0 6 1 1 but that doesn't get a "sony-camera" script to run. It's probably the wrong place -- I assume I'd need to wait for the sd_mod module to be loaded first, anyway. So, I'm wondering how I determine that this specific camera is installed, and how to make a script run on this event. Here's the output when I connect the camera: May 16 14:19:58 bumby kernel: hub 1-0:1.0: connect-debounce failed, port 2 disabled May 16 14:19:58 bumby kernel: usb 1-2: new full speed USB device using address 4 May 16 14:19:59 bumby hotplug: /etc/hotplug/usb.agent ACTION = add May 16 14:19:59 bumby kernel: scsi9 : SCSI emulation for USB Mass Storage devices May 16 14:19:59 bumby usb.agent[14590]: usb-storage: already loaded May 16 14:19:59 bumby kernel: Vendor: Sony Model: Sony DSC Rev: 5.00 May 16 14:19:59 bumby kernel: Type: Direct-Access ANSI SCSI revision: 02 May 16 14:19:59 bumby kernel: SCSI device sda: 483328 512-byte hdwr sectors (247 MB) May 16 14:19:59 bumby kernel: sda: assuming Write Enabled May 16 14:19:59 bumby kernel: sda: assuming drive cache: write through May 16 14:19:59 bumby kernel: sda: sda1 May 16 14:19:59 bumby kernel: Attached scsi removable disk sda at scsi9, channel 0, id 0, lun 0 May 16 14:19:59 bumby kernel: USB Mass Storage device found at 4 May 16 14:20:00 bumby scsi.agent[14625]: sd_mod: loaded sucessfully (for disk) At this point I can manually mount the camera -- but this is where I'd like a script to run. May 16 14:20:02 bumby hotplug: remove operation May 16 14:20:02 bumby kernel: usb 1-2: USB disconnect, address 4 -- Bill Moseley [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]